|
@@ -155,9 +155,12 @@ public class TaskTypeSettingManagerImpl implements ITaskTypeSettingManager{
|
|
|
BigDecimal reachPer = new BigDecimal(e.get("reachNum").toString()).divide(new BigDecimal(e.get("allNum").toString()), 2, BigDecimal.ROUND_HALF_UP);
|
|
|
reachMap.put(Long.parseLong(e.get("typeId").toString()),reachPer.multiply(hundredBigDecimal).setScale(0, RoundingMode.DOWN));
|
|
|
|
|
|
-
|
|
|
- BigDecimal caseProportion = new BigDecimal(e.get("caseProportionSum").toString()).divide(new BigDecimal(e.get("allCaseProportionNum").toString()), 1, BigDecimal.ROUND_HALF_UP);
|
|
|
- caseProportionMap.put(Long.parseLong(e.get("typeId").toString()),caseProportion);
|
|
|
+ Object caseProportionSum = e.get("caseProportionSum");
|
|
|
+ Object allCaseProportionNum = e.get("allCaseProportionNum");
|
|
|
+ if (null != caseProportionSum && null != allCaseProportionNum && !"0".equals(allCaseProportionNum.toString())){
|
|
|
+ BigDecimal caseProportion = new BigDecimal(caseProportionSum.toString()).divide(new BigDecimal(allCaseProportionNum.toString()), 1, BigDecimal.ROUND_HALF_UP);
|
|
|
+ caseProportionMap.put(Long.parseLong(e.get("typeId").toString()),caseProportion);
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
resultMap.put("reachMap",reachMap);
|