| @@ -717,9 +717,13 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { | |||||
| throw new MallinkException(ErrorCode.COUPON_ORDER_TYPE_NOT_SUPPORTED); | throw new MallinkException(ErrorCode.COUPON_ORDER_TYPE_NOT_SUPPORTED); | ||||
| } | } | ||||
| TtPoiTakeRate ttPoiTakeRate = ttPoiTakeRateMapper.selectByCoupon(wxCoupon.getTenantId(), wxCoupon.getId(),EnumCpsPlanType.ALL.getCode(),null); | 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); | WxAppinfo couponAppInfo = wxAppinfoService.getCouponAppInfo(wxCoupon); | ||||
| if(couponAppInfo == null || couponAppInfo.getPayId() == null){ | if(couponAppInfo == null || couponAppInfo.getPayId() == null){ | ||||
| throw new MallinkException(ErrorCode.APP_ID_NOT_FOUND); | throw new MallinkException(ErrorCode.APP_ID_NOT_FOUND); | ||||
| @@ -750,7 +754,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { | |||||
| //总分佣率最大值 | //总分佣率最大值 | ||||
| private int getAllMax(){ | private int getAllMax(){ | ||||
| return 2900; | |||||
| return 3000; | |||||
| } | } | ||||
| //总分佣率最小值 | //总分佣率最小值 | ||||
| private int getAllMin(WxCoupon wxCoupon){ | private int getAllMin(WxCoupon wxCoupon){ | ||||