|
|
@@ -99,7 +99,7 @@ public class OrderPromotionHelper {
|
|
|
for (PromotionDetail detail : calc.getDetails()) {
|
|
|
if ("promotion".equals(detail.getType())) {
|
|
|
// 累加所有促销减免(满减+新客立减)
|
|
|
- totalPromotionReduceCents += toCents(detail.getReduce());
|
|
|
+ totalPromotionReduceCents += detail.getReduce().intValue();
|
|
|
// 取第一个非新客立减的促销名称作为主名称
|
|
|
if (promoName == null && detail.getSubType() != null && detail.getSubType() != 4) {
|
|
|
promoName = detail.getName();
|
|
|
@@ -109,7 +109,7 @@ public class OrderPromotionHelper {
|
|
|
else if ("coupon".equals(detail.getType())) {
|
|
|
posOrder.setMdYhId(calc.getCouponId());
|
|
|
posOrder.setMdYhName(detail.getName());
|
|
|
- posOrder.setMdDiscountAmount(toCents(detail.getReduce()));
|
|
|
+ posOrder.setMdDiscountAmount(detail.getReduce().intValue());
|
|
|
}
|
|
|
}
|
|
|
|