|
|
@@ -176,14 +176,18 @@ public class IotDeviceServiceImpl implements IIotDeviceService
|
|
|
if(!devSet.isEmpty()){
|
|
|
throw new IotBizException(ErrorCode.INVALID_PARAMETER.getCode(),"该设备编码已存在");
|
|
|
}
|
|
|
-
|
|
|
- iotDevice.setDevName(devName);
|
|
|
- iotDevice.setDevCode(devCode);
|
|
|
- iotDevice.setDevconnBid(newIotDeviceconn.getDevconnBid());
|
|
|
- iotDevice.setDevModifier(SecurityUtils.getUserId());
|
|
|
- iotDevice.setDevModifieddate(DateUtils.dateTimeNow());
|
|
|
-
|
|
|
- return updateIotDevice(iotDevice, oldIotDeviceconn, newIotDeviceconn);
|
|
|
+ IotDevice updateIotDevice = new IotDevice();
|
|
|
+ updateIotDevice.setDevBid(iotDevice.getDevBid());
|
|
|
+ updateIotDevice.setDevName(devName);
|
|
|
+ updateIotDevice.setDevCode(devCode);
|
|
|
+ updateIotDevice.setDevclassBid(newIotDeviceconn.getDevclassBid());
|
|
|
+ updateIotDevice.setDevtypeBid(newIotDeviceconn.getDevtypeBid());
|
|
|
+ updateIotDevice.setDevconnBid(newIotDeviceconn.getDevconnBid());
|
|
|
+ updateIotDevice.setFirmBid(newIotDeviceconn.getFirmBid());
|
|
|
+ updateIotDevice.setDevModifier(SecurityUtils.getUserId());
|
|
|
+ updateIotDevice.setDevModifieddate(DateUtils.dateTimeNow());
|
|
|
+
|
|
|
+ return updateIotDevice(updateIotDevice, oldIotDeviceconn, newIotDeviceconn);
|
|
|
}
|
|
|
|
|
|
/**
|