记得上下班打卡 | git大法好,push需谨慎

Commit 92fdc27d authored by 胡佳晨's avatar 胡佳晨

修改 券

parent 7fb9c14a
...@@ -498,7 +498,11 @@ public class GoblinCouponImpl implements GoblinCouponService { ...@@ -498,7 +498,11 @@ public class GoblinCouponImpl implements GoblinCouponService {
BigDecimal voucherPrice; BigDecimal voucherPrice;
switch (candyCouponVo.getCouType()) { switch (candyCouponVo.getCouType()) {
case 1://代金 case 1://代金
vo.setPrice(candyCouponVo.getValFace()); BigDecimal contentPrice = BigDecimal.ZERO;
for (CouponCanUse2Param item : params.getParam()) {
contentPrice = contentPrice.add(item.getPrice());
}
vo.setPrice(candyCouponVo.getValFace().compareTo(contentPrice)>=0?contentPrice:candyCouponVo.getValFace());
break; break;
case 2://满减 case 2://满减
voucherPrice = mathPlatformPrice(candyCouponVo, params.getParam()); voucherPrice = mathPlatformPrice(candyCouponVo, params.getParam());
......
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