Browse Source

//tt product

release_toaliyun_real
xhxu 4 years ago
parent
commit
4c87f580db
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java

+ 5
- 1
mallinkCApi/src/main/java/com/iformall/controller/WxCouponController.java View File

@@ -110,7 +110,11 @@ public class WxCouponController extends BaseController {
if (null == coupon) {
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "couponChannel找不到coupon" + couponChannelId);
}
if(EnumCouponType.COUPON_GIFT.getCode().equals(coupon.getType())){
WxCoupon attrsById = couponService.getAttrsById(couponChannel.getCouponId(), couponChannel.getTenantId());
coupon.setProductAttrs(attrsById.getProductAttrs());
coupon.setSkuAttrs(attrsById.getSkuAttrs());

if(EnumCouponType.COUPON_GIFT.getCode().equals(coupon.getType())){
WxCoupon couponQ = new WxCoupon();
couponQ.updateTenantInfo(coupon);
List<Long> longs = JSON.parseArray(coupon.getGiftList(), Long.class);


Loading…
Cancel
Save