From 8a3db1ec54d2ef5593a86f4e4b3c8204f5a745b8 Mon Sep 17 00:00:00 2001 From: hupeng Date: Thu, 15 Nov 2018 15:08:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=B3=BB=E7=BB=9F][=E4=BF=AE=E5=A4=8D]:?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E4=BD=9C=E5=BA=9F=E5=8D=A1=E5=88=B8=E7=9A=84?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxCouponChannelServiceImpl.java | 1 + .../java/com/iformall/service/impl/WxCouponSendServiceImpl.java | 2 ++ .../java/com/iformall/service/impl/WxCouponServiceImpl.java | 2 ++ 3 files changed, 5 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 702644e75..5c9f90b23 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java @@ -99,6 +99,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { wxCouponChannel.setTenantId(tenantId); wxCouponChannel.setStatus(status); wxCouponChannel.setCouponId(couponId); + wxCouponChannel.setUpdateDate(new Date()); wxCouponChannelMapper.updateStatusByCouponId(wxCouponChannel); } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java index e46570d21..4aeea1902 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java @@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import java.util.Date; import java.util.List; @Service @@ -150,6 +151,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { wxCouponSend.setTenantId(tenantId); wxCouponSend.setCouponId(couponId); wxCouponSend.setStatus(status); + wxCouponSend.setUpdateDate(new Date()); wxCouponSendMapper.updateStatusByCouponId(wxCouponSend); } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java index 2de402544..ca5bb4936 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java @@ -57,6 +57,7 @@ public class WxCouponServiceImpl implements WxCouponService { record.setId(idWorker.nextId()); wxCouponMapper.insertSelective(record); } else { + record.setUpdateDate(new Date()); wxCouponMapper.updateByPrimaryKeySelective(record); } return record.getId(); @@ -80,6 +81,7 @@ public class WxCouponServiceImpl implements WxCouponService { if (wxCoupon.getStatus() != null) { if (query.getStatus().equals(EnumCouponStatus.COUPON_STATUS_THROW_IN.getCode()) && wxCoupon.getStatus().equals(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode())) { + //作废所有投放频道 wxCouponChannelService .updateStatusByCouponId(wxCoupon.getId(), query.getTenantId(), EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode());