|
|
|
@@ -2242,6 +2242,15 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
couponQ.setId(order.getProductId()); |
|
|
|
WxCoupon coupon = wxCouponMapper.findSimpleDetail(couponQ); |
|
|
|
if (null != coupon ) { |
|
|
|
if(EnumCouponType.COUPON_GIFT.getCode().equals(coupon.getType())){ |
|
|
|
WxCoupon couponGQ = new WxCoupon(); |
|
|
|
couponGQ.updateTenantInfo(tenantEntity); |
|
|
|
List<Long> longs = JSON.parseArray(coupon.getGiftList(), Long.class); |
|
|
|
if(longs != null && longs.size() > 0){ |
|
|
|
couponGQ.setIds(longs); |
|
|
|
coupon.setGiftCouponList(wxCouponMapper.findList(couponGQ)); |
|
|
|
} |
|
|
|
} |
|
|
|
vo.initByCoupon(coupon, true); |
|
|
|
} |
|
|
|
WxCouponOrder couponOrderQ = new WxCouponOrder(); |
|
|
|
|