|
|
@ -508,7 +508,11 @@ 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()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -530,7 +534,11 @@ 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 { |
|
|
@ -550,7 +558,11 @@ 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 { |
|
|
|