|
|
|
@@ -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); |
|
|
|
|