Browse Source

修改规则筛选-设备查询增加使用状态

develop
Mr.Wang 5 months ago
parent
commit
b3a3ba7ec6
  1. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java

4
zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java

@ -427,10 +427,10 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i
String childType = String.valueOf(parameter.get("childType"));
String deviceState = String.valueOf(parameter.get("deviceState"));
String direction = String.valueOf(parameter.get("direction"));
Integer useState = Integer.parseInt(parameter.get("useState").toString());
String useState = String.valueOf(parameter.get("useState"));
DcDevice device = new DcDevice();
if (!Objects.equals(useState, "null")) {
device.setUseState(useState);
device.setUseState(Integer.parseInt(useState));
}
if (!Objects.equals(childType, "null")) {
device.setChildType(childType);

Loading…
Cancel
Save