修复供应商类型默认值为null
This commit is contained in:
parent
77e2db8dd7
commit
de8d9c7e1a
|
@ -89,26 +89,31 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
|
|||
return BaseResult.getFailureMessageEntity("客商名称重复!");
|
||||
} else {
|
||||
requestJson = new JSONObject();
|
||||
requestJson.put("taxpayer", field0007);
|
||||
body = requestApi("validateCustomerName", requestJson, "800054", "8000540095", null);
|
||||
req = JSON.parseObject(body);
|
||||
flag = req.getBoolean("flag");
|
||||
if (flag) {
|
||||
attribute = req.getJSONObject("attribute");
|
||||
status = attribute.getString("status");
|
||||
if ("success".equals(status)) {
|
||||
detailsData = attribute.getJSONObject("data");
|
||||
allcount = detailsData.getInteger("allcount");
|
||||
if (allcount > 0) {
|
||||
return BaseResult.getFailureMessageEntity("纳税人识别号重复!");
|
||||
if(null != field0007 && !"".equals(field0007)){
|
||||
|
||||
requestJson.put("taxpayer", field0007);
|
||||
body = requestApi("validateCustomerName", requestJson, "800054", "8000540095", null);
|
||||
req = JSON.parseObject(body);
|
||||
flag = req.getBoolean("flag");
|
||||
if (flag) {
|
||||
attribute = req.getJSONObject("attribute");
|
||||
status = attribute.getString("status");
|
||||
if ("success".equals(status)) {
|
||||
detailsData = attribute.getJSONObject("data");
|
||||
allcount = detailsData.getInteger("allcount");
|
||||
if (allcount > 0) {
|
||||
return BaseResult.getFailureMessageEntity("纳税人识别号重复!");
|
||||
} else {
|
||||
return BaseResult.getSuccessMessageEntity("客商未重复!");
|
||||
}
|
||||
} else {
|
||||
return BaseResult.getSuccessMessageEntity("客商未重复!");
|
||||
return BaseResult.getFailureMessageEntity("转发失败!");
|
||||
}
|
||||
} else {
|
||||
return BaseResult.getFailureMessageEntity("转发失败!");
|
||||
return BaseResult.getFailureMessageEntity("转发失败!" + req.getString("msg"));
|
||||
}
|
||||
} else {
|
||||
return BaseResult.getFailureMessageEntity("转发失败!" + req.getString("msg"));
|
||||
}else{
|
||||
return BaseResult.getSuccessMessageEntity("纳税人识别号为空,不校验!");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -364,7 +369,7 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
|
|||
bank.put("defflag", "Y");
|
||||
bank.put("memo", formBean.getString("field0054"));
|
||||
//开户银行 传递以后名称
|
||||
// bank.put("accname", formBean.getString("field0013"));
|
||||
bank.put("accname", formBean.getString("field0013"));
|
||||
// bank.put("pk_bankdoc", formBean.getString("field0013"));
|
||||
|
||||
//新增固定传递集团
|
||||
|
@ -404,7 +409,7 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
|
|||
//客商简称
|
||||
parentvo.put("custshortname", formBean.getString("field0001"));
|
||||
//销售方式
|
||||
String def1 = formBean.getString("field0024");
|
||||
String def1 = formBean.getString("field0024")== null?"":formBean.getString("field0024");
|
||||
|
||||
switch (def1) {
|
||||
case "-285414580163689148":
|
||||
|
|
Loading…
Reference in New Issue