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

Commit 23098aac authored by 胡佳晨's avatar 胡佳晨

修改 平台券

parent 7f62ddd5
...@@ -557,6 +557,9 @@ public class GoblinCouponImpl implements GoblinCouponService { ...@@ -557,6 +557,9 @@ public class GoblinCouponImpl implements GoblinCouponService {
//计算平台券金额 //计算平台券金额
private BigDecimal mathPlatformPrice(CandyCouponVo candyCouponVo, List<CouponCanUse2Param> param, BigDecimal contentPrice) { private BigDecimal mathPlatformPrice(CandyCouponVo candyCouponVo, List<CouponCanUse2Param> param, BigDecimal contentPrice) {
BigDecimal voucherPrice = BigDecimal.ZERO; BigDecimal voucherPrice = BigDecimal.ZERO;
if(candyCouponVo.getUseRules().size()==0){
return contentPrice;
}
for (CandyCouponRulesVo couponRulesVo : candyCouponVo.getUseRules()) { for (CandyCouponRulesVo couponRulesVo : candyCouponVo.getUseRules()) {
if (couponRulesVo.getUseScope().equals(100)) { if (couponRulesVo.getUseScope().equals(100)) {
voucherPrice = contentPrice; voucherPrice = contentPrice;
......
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