Просмотр исходного кода

//rate share

release_toaliyun_real
xhxu 3 лет назад
Родитель
Сommit
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){


Загрузка…
Отмена
Сохранить