|
|
|
@@ -771,7 +771,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
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(); |
|
|
|
Integer maxTakeRate = ttPoiTakeRateMapper.getMaxTakeRate(wxCoupon.getTenantId(), wxCoupon.getId()); |
|
|
|
if(maxTakeRate != null){ |
|
|
|
rate += maxTakeRate; |
|
|
|
|