Преглед изворни кода

//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…
Откажи
Сачувај