Commit e642cb3b by huangjy

fix:还远

parent 9b14db8a
......@@ -493,12 +493,7 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
log.info("写入设备属性请求参数:{}",JSON.toJSONString(dto));
Map<String, Object> map = Maps.newHashMap();
map.put("usrServerInfo",JSON.toJSONString(usrServerInfo));
PlatDevice platDevice = getById(deviceId);
String result = "";
if (platDevice != null) {
result = devicePropertiesOperateService.deviceWriteAttr(platDevice.getOriDeviceId(), map);
}
String result = devicePropertiesOperateService.deviceWriteAttr(deviceId, 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