|
|
|
@ -81,7 +81,7 @@ public class PhenomenonServiceImpl extends BaseServiceImpl<PhenomenonMapper, Ope
|
|
|
|
|
defectVO.setTotalIds(operPhenomenonList.stream().map(o->String.valueOf(o.getId())).collect(Collectors.joining(","))); |
|
|
|
|
defectVO.setDefectSum(operPhenomenonList.size()); |
|
|
|
|
// 消缺数
|
|
|
|
|
List<Long> defectList = operPhenomenonList.stream().filter(o -> (Func.isNotEmpty(o.getIsDefect()) && o.getIsDefect() == 0) || "1".equals(o.getConclusionStatus())). |
|
|
|
|
List<Long> defectList = operPhenomenonList.stream().filter(defect-> !ObjectUtil.isEmpty(defect.getHandleTaskId())). |
|
|
|
|
map(OperPhenomenonEntity::getId).collect(Collectors.toList()); |
|
|
|
|
if(CollectionUtil.isEmpty(defectList)){ |
|
|
|
|
defectVO.setDefect(0); |
|
|
|
@ -118,8 +118,7 @@ public class PhenomenonServiceImpl extends BaseServiceImpl<PhenomenonMapper, Ope
|
|
|
|
|
} |
|
|
|
|
// 消缺数
|
|
|
|
|
shortagesVo.setShortagesSum(defects.size()); |
|
|
|
|
List<Long> shortagesList = defects.stream().filter(o -> (Func.isNotEmpty(o.getIsDefect()) && o.getIsDefect() == 0) || "1".equals(o.getConclusionStatus())). |
|
|
|
|
map(OperPhenomenonEntity::getId).collect(Collectors.toList()); |
|
|
|
|
List<Long> shortagesList = defects.stream().filter(defect-> !ObjectUtil.isEmpty(defect.getHandleTaskId())).map(OperPhenomenonEntity::getId).collect(Collectors.toList()); |
|
|
|
|
if(CollectionUtil.isEmpty(shortagesList)){ |
|
|
|
|
shortagesVo.setShortages(0); |
|
|
|
|
} |
|
|
|
|