Browse Source

设备筛选增加设备状态

develop
Mr.Wang 5 months ago
parent
commit
593031a6b9
  1. 5
      zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

5
zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

@ -492,6 +492,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
parameter.put("startStakeMark", start);
parameter.put("endStakeMark", end);
parameter.put("useState",UniversalEnum.ONE.getNumber());
parameter.put("deviceState", UniversalEnum.ONE.getValue());
dcDevices = dcDeviceService.devicePileNumberQueryDevice(parameter);
Collections.sort(dcDevices, new Comparator<DcDevice>() {
@Override
@ -516,6 +517,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
parameter.put("startStakeMark", start);
parameter.put("endStakeMark", end);
parameter.put("useState",UniversalEnum.ONE.getNumber());
parameter.put("deviceState", UniversalEnum.ONE.getValue());
dcDevices = dcDeviceService.devicePileNumberQueryDevice(parameter);
Collections.sort(dcDevices, new Comparator<DcDevice>() {
@Override
@ -543,6 +545,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
parameter.put("startStakeMark", start);
parameter.put("endStakeMark", end);
parameter.put("useState",UniversalEnum.ONE.getNumber());
parameter.put("deviceState", UniversalEnum.ONE.getValue());
dcDevices = dcDeviceService.devicePileNumberQueryDevice(parameter);
Collections.sort(dcDevices, new Comparator<DcDevice>() {
@Override
@ -567,6 +570,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
parameter.put("startStakeMark", start);
parameter.put("endStakeMark", end);
parameter.put("useState",UniversalEnum.ONE.getNumber());
parameter.put("deviceState", UniversalEnum.ONE.getValue());
dcDevices = dcDeviceService.devicePileNumberQueryDevice(parameter);
Collections.sort(dcDevices, new Comparator<DcDevice>() {
@Override
@ -596,6 +600,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
parameter.put("endStakeMark", end);
parameter.put("deviceType", dcExecuteAction.getDeviceType());
parameter.put("useState",UniversalEnum.ONE.getNumber());
parameter.put("deviceState", UniversalEnum.ONE.getValue());
// 根据桩号范围,查询附近设备
dcDevices = dcDeviceService.devicePileNumberQueryDevice(parameter);
}

Loading…
Cancel
Save