|
|
|
@@ -385,7 +385,7 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
WxCouponChannel wxCouponChannelQuery = new WxCouponChannel(); |
|
|
|
wxCouponChannelQuery.updateTenantInfo(wxCoupon); |
|
|
|
wxCouponChannelQuery.setCouponId(wxCoupon.getId()); |
|
|
|
// wxCouponChannelQuery.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_DOUYIN_LIST.getCode()); |
|
|
|
wxCouponChannelQuery.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_DOUYIN.getCode()); |
|
|
|
wxCouponChannelQuery.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); |
|
|
|
List<WxCouponChannel> wxCouponChannels = wxCouponChannelMapper.findList(wxCouponChannelQuery); |
|
|
|
if(wxCouponChannels.size() > 0){ |
|
|
|
@@ -393,6 +393,11 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(op_type.equals(ttCouponChannelPoi.getLastStatus())){ |
|
|
|
logger.info("与线上状态一致, 无需同步{}"+wxCoupon.getId()); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
TtWebService ttWebService = ttMerchantPoiService.getTtWebService(ttCouponChannelPoi); |
|
|
|
boolean b = ttWebService.getGoodsService().productOperate(null,wxCoupon.getId().toString(),op_type); |
|
|
|
|