|
|
|
@ -1508,9 +1508,9 @@ public class InspectionTaskServiceImpl extends BaseServiceImpl<InspectionTaskMap |
|
|
|
StatusCountMap map = new StatusCountMap(); |
|
|
|
StatusCountMap map = new StatusCountMap(); |
|
|
|
int sumCheckQ = 0, sumTestQty = 0, sumLossQty = 0; |
|
|
|
int sumCheckQ = 0, sumTestQty = 0, sumLossQty = 0; |
|
|
|
for (WorkPlanItem item : itemList) { |
|
|
|
for (WorkPlanItem item : itemList) { |
|
|
|
sumCheckQ += item.getCheckQty(); |
|
|
|
sumCheckQ += item.getCheckQty() != null ? item.getCheckQty().intValue() : 0; |
|
|
|
sumTestQty += item.getTestQty(); |
|
|
|
sumTestQty += item.getTestQty() != null ? item.getTestQty().intValue() : 0; |
|
|
|
sumLossQty += item.getLossQty(); |
|
|
|
sumLossQty += item.getLossQty() != null ? item.getLossQty().intValue() : 0; |
|
|
|
map.add1(item.getCheckResult()); |
|
|
|
map.add1(item.getCheckResult()); |
|
|
|
} |
|
|
|
} |
|
|
|
int countToDo = map.get(InspectionTaskConst.CHECK_RESULT_TODO); |
|
|
|
int countToDo = map.get(InspectionTaskConst.CHECK_RESULT_TODO); |
|
|
|
|