增加纳税人识别号验证规则
This commit is contained in:
parent
71e82ff166
commit
208a7d842a
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue