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