|
|
|
@@ -228,7 +228,10 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
updCC.setUpdateDate(new Date()); |
|
|
|
wxCouponChannelMapper.updateStatusByTargetAd(updCC); |
|
|
|
|
|
|
|
spuStatusSyncByCoupon(wxCoupon,wxCoupon.getId()); |
|
|
|
/** |
|
|
|
* 事务原因可能导致状态不一致, 放到事务完成之后 |
|
|
|
*/ |
|
|
|
// spuStatusSyncByCoupon(wxCoupon,wxCoupon.getId()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@@ -255,7 +258,11 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
updCC.setUpdateDate(new Date()); |
|
|
|
wxCouponChannelMapper.updateStatusByTargetAd(updCC); |
|
|
|
|
|
|
|
spuStatusSyncByCoupon(wxCoupon,wxCoupon.getId()); |
|
|
|
/** |
|
|
|
* |
|
|
|
* 事务原因可能导致状态不一致, 放到事务完成之后 |
|
|
|
*/ |
|
|
|
// spuStatusSyncByCoupon(wxCoupon,wxCoupon.getId()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@@ -709,12 +716,15 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
wxCouponChannel.setChannelStock(channelStock); |
|
|
|
ResultData resultData = saveOrUpdate(wxCouponChannel); |
|
|
|
WxCouponChannel channel = (WxCouponChannel)resultData.data; |
|
|
|
vo.setId(channel.getId()); |
|
|
|
vo.setType(channel.getType()); |
|
|
|
vo.setSuc(true); |
|
|
|
if(channel != null){ |
|
|
|
vo.setId(channel.getId()); |
|
|
|
vo.setType(channel.getType()); |
|
|
|
vo.setSuc(true); |
|
|
|
|
|
|
|
this.updateQrCode(channel,channel.getId(),channel.getType()); |
|
|
|
this.updateQrCode(channel,channel.getId(),channel.getType()); |
|
|
|
|
|
|
|
this.spuStatusSyncByCoupon(channel,channel.getCouponId()); |
|
|
|
} |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
|