mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
Merge pull request #5 from goxofy/manual-add-device
fix id in ai_device
This commit is contained in:
+1
@@ -422,6 +422,7 @@ public class DeviceServiceImpl extends BaseServiceImpl<DeviceDao, DeviceEntity>
|
|||||||
throw new RenException("该Mac地址已存在");
|
throw new RenException("该Mac地址已存在");
|
||||||
}
|
}
|
||||||
DeviceEntity entity = new DeviceEntity();
|
DeviceEntity entity = new DeviceEntity();
|
||||||
|
entity.setId(dto.getMacAddress());
|
||||||
entity.setUserId(userId);
|
entity.setUserId(userId);
|
||||||
entity.setAgentId(dto.getAgentId());
|
entity.setAgentId(dto.getAgentId());
|
||||||
entity.setBoard(dto.getBoard());
|
entity.setBoard(dto.getBoard());
|
||||||
|
|||||||
Reference in New Issue
Block a user