|
@@ -144,8 +144,8 @@ public class DataSyncServiceImpl extends ServiceImpl<SyncRecordMapper, SyncRecor
|
|
|
if (existDevice != null) {
|
|
if (existDevice != null) {
|
|
|
// 更新设备信息
|
|
// 更新设备信息
|
|
|
existDevice.setName(deviceInfo.getName());
|
|
existDevice.setName(deviceInfo.getName());
|
|
|
|
|
+ existDevice.setAddress(deviceInfo.getAddress());
|
|
|
existDevice.setStatus("1".equals(deviceInfo.getStatus()) ? 1 : 0);
|
|
existDevice.setStatus("1".equals(deviceInfo.getStatus()) ? 1 : 0);
|
|
|
- // existDevice.setAddress(deviceInfo.getAddress()); // Device实体暂无address字段
|
|
|
|
|
deviceService.updateById(existDevice);
|
|
deviceService.updateById(existDevice);
|
|
|
|
|
|
|
|
// 记录成功日志
|
|
// 记录成功日志
|
|
@@ -156,7 +156,7 @@ public class DataSyncServiceImpl extends ServiceImpl<SyncRecordMapper, SyncRecor
|
|
|
Device newDevice = new Device();
|
|
Device newDevice = new Device();
|
|
|
newDevice.setDeviceId(deviceInfo.getId());
|
|
newDevice.setDeviceId(deviceInfo.getId());
|
|
|
newDevice.setName(deviceInfo.getName());
|
|
newDevice.setName(deviceInfo.getName());
|
|
|
- // newDevice.setAddress(deviceInfo.getAddress()); // Device实体暂无address字段
|
|
|
|
|
|
|
+ newDevice.setAddress(deviceInfo.getAddress());
|
|
|
newDevice.setStatus("1".equals(deviceInfo.getStatus()) ? 1 : 0);
|
|
newDevice.setStatus("1".equals(deviceInfo.getStatus()) ? 1 : 0);
|
|
|
deviceService.save(newDevice);
|
|
deviceService.save(newDevice);
|
|
|
|
|
|