|
|
|
@ -348,7 +348,7 @@ public class DeviceServiceImpl implements IDeviceService { |
|
|
|
deviceInfo.setUnit(""); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(deviceUpdateParams.getDataMapping())) { |
|
|
|
deviceInfo.setDataMapping(""); |
|
|
|
deviceInfo.setDataMapping("{}"); |
|
|
|
} |
|
|
|
this.deviceInfoMapperExt.updateByPrimaryKeySelective(deviceInfo); |
|
|
|
|
|
|
|
@ -953,7 +953,7 @@ public class DeviceServiceImpl implements IDeviceService { |
|
|
|
deviceInfo.setUnit(deviceInfoExcel.getUnit()); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(deviceInfoExcel.getDataMapping())){ |
|
|
|
deviceInfo.setDataMapping(""); |
|
|
|
deviceInfo.setDataMapping("{}"); |
|
|
|
} else { |
|
|
|
deviceInfo.setDataMapping(deviceInfoExcel.getDataMapping()); |
|
|
|
} |
|
|
|
|