From 53ff27d3281875070fd8131fdc5fb5337e439667 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Sat, 3 Aug 2019 18:07:36 +0800 Subject: [PATCH] =?UTF-8?q?[C=E7=AB=AF=E6=B6=88=E8=B4=B9=E5=8D=A1][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E5=8F=AF=E8=BD=AC=E8=B5=A0=E7=8A=B6?= =?UTF-8?q?=E6=80=81]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxCouponChannelServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java index d0fb244c5..3a8b80fb8 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java @@ -100,6 +100,14 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { wxScreenAdService.updateStatusByCouponChannelId(record.getId(),record.getTenantId(),EnumScreenAdStatus.INVALID.getCode()); //下架拼团券 wxOrderService.updateOrderGroupStatusByCouponChannelId(record.getId(), record.getTenantId(), EnumOrderStatus.ORDER_STATUS_COOPERATING_CANCEL.getCode()); + //卡-转赠状态 + if (orignal.getType().equals(EnumCouponChannelType.COUPON_CHANNEL_ID_CARD.getCode())) { + WxCoupon wxCoupon = new WxCoupon(); + wxCoupon.setId(orignal.getCouponId()); + wxCoupon.setSupportTransfer(EnumCouponTransfer.NO.getCode()); + wxCoupon.setUpdateDate(new Date()); + wxCouponService.update(wxCoupon); + } } } record.setUpdateDate(new Date());