Browse Source

解决上游设备数量,不足需求设备数量错误

develop
Mr.Wang 10 months ago
parent
commit
01174c0cee
  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

@ -485,8 +485,13 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
}
});
if (dcDevices.size() > 0) {
if (dcExecuteAction.getNumber() > dcDevices.size()) {
dcDevices = dcDevices.subList(0, dcDevices.size());
}else {
dcDevices = dcDevices.subList(0, dcExecuteAction.getNumber());
}
}
} else {
// 下行 取最小的几个
start.add(markArray[0]);

Loading…
Cancel
Save