瀏覽代碼

//rate share

release_toaliyun_real
xhxu 3 年之前
父節點
當前提交
901c67a7dd
共有 1 個檔案被更改,包括 7 行新增3 行删除
  1. +7
    -3
      mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java

+ 7
- 3
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){


Loading…
取消
儲存