|
@@ -173,7 +173,7 @@ public class RuleKuaiShouPlanServiceImpl implements IRuleKuaiShouPlanService {
|
|
|
//未知优化目标数据存空
|
|
|
if(group.getOcpxActionType()!=0){
|
|
|
unit.setConvertNum(handleConvertNum(group.getOcpxActionType(),unitDetail));
|
|
|
- if(unit.getConvertNum()!=0){
|
|
|
+ if(null!=unit.getConvertNum()&&unit.getConvertNum()!=0){
|
|
|
unit.setConvertCost(unitDetail.getBigDecimal("charge").divide(BigDecimal.valueOf(unit.getConvertNum()), 2, RoundingMode.HALF_UP));
|
|
|
}
|
|
|
}
|