Browse Source

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

develop
Mr.Wang 10 months ago
parent
commit
01174c0cee
  1. 7
      zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

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

@ -485,7 +485,12 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
}
});
if (dcDevices.size() > 0) {
dcDevices = dcDevices.subList(0, dcExecuteAction.getNumber());
if (dcExecuteAction.getNumber() > dcDevices.size()) {
dcDevices = dcDevices.subList(0, dcDevices.size());
}else {
dcDevices = dcDevices.subList(0, dcExecuteAction.getNumber());
}
}
} else {
// 下行 取最小的几个

Loading…
Cancel
Save