|
|
@@ -630,9 +630,10 @@ public class BandingTaskClassServiceImpl extends MPJBaseServiceImpl<BandingTaskC
|
|
|
.filter(x -> x.getIsReport() == 0)
|
|
|
.collect(Collectors.toList());
|
|
|
result.setNotArrivedCount(notArrivedList.size());
|
|
|
-
|
|
|
- BigDecimal divide = BigDecimal.valueOf(result.getArrivedCount()).divide(BigDecimal.valueOf(result.getAllCount()), 4, RoundingMode.HALF_UP);
|
|
|
- result.setReportRate(divide.doubleValue() + "");
|
|
|
+ if(result.getAllCount() != 0){
|
|
|
+ BigDecimal divide = BigDecimal.valueOf(result.getArrivedCount()).divide(BigDecimal.valueOf(result.getAllCount()), 4, RoundingMode.HALF_UP);
|
|
|
+ result.setReportRate(divide.doubleValue() + "");
|
|
|
+ }
|
|
|
|
|
|
return result;
|
|
|
}
|