|
|
|
@@ -146,10 +146,12 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Long couponId = null; |
|
|
|
if (record.getStatus() != null) { |
|
|
|
WxCouponChannel orignal = getById(record.getId(),record.getTenantId()); |
|
|
|
if (orignal.getStatus().equals(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()) |
|
|
|
&& record.getStatus().equals(EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode())) { |
|
|
|
couponId = orignal.getCouponId(); |
|
|
|
wxScreenAdService.updateStatusByCouponChannelId(record.getId(),record,EnumScreenAdStatus.INVALID.getCode()); |
|
|
|
//下架拼团券 |
|
|
|
wxOrderService.updateOrderGroupStatusByCouponChannelId(record.getId(), record, EnumOrderStatus.ORDER_STATUS_COOPERATING_CANCEL.getCode()); |
|
|
|
@@ -164,9 +166,9 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
wxCouponChannelMapper.updateById(record); |
|
|
|
|
|
|
|
try{ |
|
|
|
if(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode().equals(record.getStatus())){ |
|
|
|
if(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode().equals(record.getStatus()) && couponId != null){ |
|
|
|
//同步抖音状态 |
|
|
|
spuStatusSyncByCoupon(record,record.getCouponId()); |
|
|
|
spuStatusSyncByCoupon(record,couponId); |
|
|
|
} |
|
|
|
}catch(Exception e){ |
|
|
|
logger.error("send spuStatusSync error: " + e.getMessage()); |
|
|
|
|