diff --git a/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java index cd0f28883..5a0f82b49 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java @@ -717,9 +717,13 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { throw new MallinkException(ErrorCode.COUPON_ORDER_TYPE_NOT_SUPPORTED); } TtPoiTakeRate ttPoiTakeRate = ttPoiTakeRateMapper.selectByCoupon(wxCoupon.getTenantId(), wxCoupon.getId(),EnumCpsPlanType.ALL.getCode(),null); - if(ttPoiTakeRate == null){ - throw new MallinkException(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"请先设置总分佣率"); + Integer takeRate = null; + if(ttPoiTakeRate != null){ + takeRate = ttPoiTakeRate.getTakeRate(); + }else{ + takeRate = 2900; } + WxAppinfo couponAppInfo = wxAppinfoService.getCouponAppInfo(wxCoupon); if(couponAppInfo == null || couponAppInfo.getPayId() == null){ throw new MallinkException(ErrorCode.APP_ID_NOT_FOUND); @@ -750,7 +754,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { //总分佣率最大值 private int getAllMax(){ - return 2900; + return 3000; } //总分佣率最小值 private int getAllMin(WxCoupon wxCoupon){