diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/wscustomersynchronizationevent/service/impl/WsCustomerSynchronizationEventServiceImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/wscustomersynchronizationevent/service/impl/WsCustomerSynchronizationEventServiceImpl.java index 7b36cc1c..910b1ae7 100644 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/wscustomersynchronizationevent/service/impl/WsCustomerSynchronizationEventServiceImpl.java +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/wscustomersynchronizationevent/service/impl/WsCustomerSynchronizationEventServiceImpl.java @@ -91,6 +91,7 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus requestJson = new JSONObject(); if(null != field0007 && !"".equals(field0007)){ if(field0007.trim().length()>18){ + logger.info("当前纳税人识别号接收数据field0007.trim():"+field0007.trim()); return BaseResult.getFailureMessageEntity("纳税人识别号不允许超过18位!"); } requestJson.put("taxpayer", field0007.trim()); @@ -173,6 +174,15 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus } //绑定客商分配参数 requestJson = bindMerchantDefineParameters(data, pk_cubasdoc,DEV); + try { + logger.info("新增客商后客商分配参数休眠10秒后触发"); + // 休眠 10 秒,1000 毫秒为 1 秒,10 秒则是 10 * 1000 + Thread.sleep(10 * 1000); + } catch (InterruptedException e) { + // 处理中断异常,这里简单打印异常信息 + logger.info("新增客商后客商分配参数休眠10秒失败"+e.getMessage()); + e.printStackTrace(); + } body = requestApi("optionCustomerSynchronization客商分配", requestJson, "800054", "8000540094", null); req = JSON.parseObject(body); flag = req.getBoolean("flag");