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