|
|
@ -1010,6 +1010,7 @@ public class OperDefectServiceImpl extends BaseServiceImpl<OperDefectMapper, Ope |
|
|
|
OperDefectRepeatRatioDTO addUp = OperDefectRepeatRatioDTO.builder().defectLevel("合计").happenNum(one.getHappenNum() + two.getHappenNum() + three.getHappenNum()).happenSumNum(one.getHappenSumNum() + two.getHappenSumNum() + three.getHappenSumNum()).happenRatio(1.0).repeatRatio(1.00).build(); |
|
|
|
OperDefectRepeatRatioDTO addUp = OperDefectRepeatRatioDTO.builder().defectLevel("合计").happenNum(one.getHappenNum() + two.getHappenNum() + three.getHappenNum()).happenSumNum(one.getHappenSumNum() + two.getHappenSumNum() + three.getHappenSumNum()).happenRatio(1.0).repeatRatio(1.00).build(); |
|
|
|
if (addUp.getHappenNum().equals(0L)) { |
|
|
|
if (addUp.getHappenNum().equals(0L)) { |
|
|
|
addUp.setRepeatRatio(0.0); |
|
|
|
addUp.setRepeatRatio(0.0); |
|
|
|
|
|
|
|
addUp.setHappenRatio(0.0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
re.addAll(Arrays.asList(one, two, three, addUp)); |
|
|
|
re.addAll(Arrays.asList(one, two, three, addUp)); |
|
|
|