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