|
|
|
@@ -969,13 +969,13 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
} |
|
|
|
|
|
|
|
private void spuStockSync(TenantEntity tenantEntity,Long id){ |
|
|
|
new Thread(() -> { |
|
|
|
//1秒之后同步poi |
|
|
|
try { |
|
|
|
Thread.currentThread().sleep(1000); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("sleep error: " + e.getMessage()); |
|
|
|
} |
|
|
|
// new Thread(() -> { |
|
|
|
// //1秒之后同步poi |
|
|
|
// try { |
|
|
|
// Thread.currentThread().sleep(1000); |
|
|
|
// } catch (Exception e) { |
|
|
|
// logger.error("sleep error: " + e.getMessage()); |
|
|
|
// } |
|
|
|
|
|
|
|
List<Long> couponChannelIds = wxCouponChannelMapper.getPoiProductIdList(tenantEntity.getTenantId(),id); |
|
|
|
if(couponChannelIds != null && couponChannelIds.size() > 0){ |
|
|
|
@@ -991,7 +991,7 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}).start(); |
|
|
|
// }).start(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|