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

//merchant

release_toaliyun_real
xhxu 3 лет назад
Родитель
Сommit
1d5db24062
1 измененных файлов: 2 добавлений и 6 удалений
  1. +2
    -6
      mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java

+ 2
- 6
mallinkService/src/main/java/com/iformall/service/impl/TtCouponGoodsServiceImpl.java Просмотреть файл

@@ -762,17 +762,13 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService {
throw new MallinkException(ErrorCode.API_KEY_NOT_FOUND);
}
int rate = 0;
if(EnumYesOrNo.YES.getCode().equals(payAccount.getIsCommission())){
rate = payAccount.getRealRate()+payAccount.getSystemRate()+payAccount.getSellRate();
}else{
return getAllMax();
}
rate = payAccount.getRealRate()+payAccount.getSystemRate()+payAccount.getSellRate();
if(EnumAppPlat.TOUTIAO.getCode().equals(couponAppInfo.getPlat())){
if(wxCoupon.getCategoryId() == null){
throw new MallinkException(ErrorCode.COUPON_ORDER_TYPE_NOT_SUPPORTED.getCode(),"卡券信息错误");
}
TtGoodsCategory ttGoodsCategory = ttGoodsCategoryMapper.selectById(wxCoupon.getCategoryId());
rate = rate+payAccount.getRealRate()-ttGoodsCategory.getServiceFee();
rate = rate-payAccount.getRealRate()+ttGoodsCategory.getServiceFee();
}
if(takeRate > rate){
rate = takeRate - rate;


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