Commit 9b14db8a by huangjy

fix:设备写入网络信息问题

parent 58945d23
......@@ -493,7 +493,12 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
log.info("写入设备属性请求参数:{}",JSON.toJSONString(dto));
Map<String, Object> map = Maps.newHashMap();
map.put("usrServerInfo",JSON.toJSONString(usrServerInfo));
String result = devicePropertiesOperateService.deviceWriteAttr(deviceId, map);
PlatDevice platDevice = getById(deviceId);
String result = "";
if (platDevice != null) {
result = devicePropertiesOperateService.deviceWriteAttr(platDevice.getOriDeviceId(), map);
}
if (StringUtils.isNotEmpty(result)) {
throw new RuntimeException("设备写入失败:" + result);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment