|
|
|
@@ -615,6 +615,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
if(record.getTakeRate() > rateMax){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"分佣率超过最大值("+rateMax+")"); |
|
|
|
} |
|
|
|
Long spu_id = Long.parseLong(ttCouponChannelPoi.getSpuId()); |
|
|
|
TtWebService ttWebService = ttMerchantPoiService.getTtWebService(record); |
|
|
|
Long returnPlanId = null; |
|
|
|
PoiOrientedPlan poiPlan = new PoiOrientedPlan(); |
|
|
|
@@ -630,7 +631,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
} |
|
|
|
List<PoiOrientedPlan.ProductRate> productList = new ArrayList<>(); |
|
|
|
PoiOrientedPlan.ProductRate product = new PoiOrientedPlan.ProductRate(); |
|
|
|
product.setProductId(record.getCouponId()); |
|
|
|
product.setProductId(spu_id); |
|
|
|
product.setCommissionRate(record.getTakeRate()); |
|
|
|
productList.add(product); |
|
|
|
poiPlan.setProductList(productList); |
|
|
|
|