Commit 85b9a431 authored by zp's avatar zp

代码清理

parent 35752327
...@@ -161,9 +161,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan ...@@ -161,9 +161,7 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
BonusRatioVO vo = new BonusRatioVO(); BonusRatioVO vo = new BonusRatioVO();
vo.setType(l.getDistributeType()); vo.setType(l.getDistributeType());
vo.setTime(l.getDistributeDate().getTime()); vo.setTime(l.getDistributeDate().getTime());
if (l.getDistribution() != null) { vo.setDistribution(BigDecimalUtil.toString(l.getDistribution(), 2));
vo.setDistribution(l.getDistribution().setScale(2, BigDecimal.ROUND_HALF_UP).toString());
}
return vo; return vo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }
......
...@@ -533,9 +533,7 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -533,9 +533,7 @@ public class ProductServiceImpl implements ProductService, Constant {
BonusRatioVO vo = new BonusRatioVO(); BonusRatioVO vo = new BonusRatioVO();
vo.setType(l.getDistributeType()); vo.setType(l.getDistributeType());
vo.setTime(l.getDistributeDate().getTime()); vo.setTime(l.getDistributeDate().getTime());
if (l.getDistribution() != null) { vo.setDistribution(BigDecimalUtil.toString(l.getDistribution(), 2));
vo.setDistribution(l.getDistribution().setScale(2, BigDecimal.ROUND_HALF_UP).toString());
}
return vo; return vo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment