Authored by mingdan.ge

cps活动返利小数取舍

... ... @@ -1795,7 +1795,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport
}else */
if (activity.getType() == 2) {
//活动类型:2-订单返利翻x倍
extraAmount = order.getAmount().multiply(new BigDecimal(activity.getPercent()).divide(new BigDecimal(10)));
extraAmount = order.getAmount().multiply(new BigDecimal(activity.getPercent()).divide(new BigDecimal(10))).setScale(2,BigDecimal.ROUND_DOWN);
}
if (activity.getAmount().intValue()>0&&extraAmount.compareTo(activity.getAmount())>0) {
//订单返利金额高于封顶金额
... ...