修改供应商开户行不能传递错误
This commit is contained in:
parent
de8d9c7e1a
commit
f51235e6ed
|
@ -71,7 +71,7 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
|
|||
private JsonResultEntity validateCustomerName(JSONObject data) {
|
||||
JSONObject formBean = data.getJSONObject("formmain_4389");
|
||||
//客商名称
|
||||
String field0006 = formBean.getString("field0006");
|
||||
String field0006 = formBean.getString("field0006").trim();
|
||||
//纳税人登记号
|
||||
String field0007 = formBean.getString("field0007");
|
||||
JSONObject requestJson = new JSONObject();
|
||||
|
@ -90,8 +90,10 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
|
|||
} else {
|
||||
requestJson = new JSONObject();
|
||||
if(null != field0007 && !"".equals(field0007)){
|
||||
|
||||
requestJson.put("taxpayer", field0007);
|
||||
if(field0007.trim().length()>=18){
|
||||
return BaseResult.getFailureMessageEntity("纳税人识别号不允许超过18位!");
|
||||
}
|
||||
requestJson.put("taxpayer", field0007.trim());
|
||||
body = requestApi("validateCustomerName", requestJson, "800054", "8000540095", null);
|
||||
req = JSON.parseObject(body);
|
||||
flag = req.getBoolean("flag");
|
||||
|
@ -279,6 +281,7 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
|
|||
customer.put("custprop", custprop);
|
||||
//客商ID
|
||||
customer.put("pk_cubasdoc", pk_cubasdoc);
|
||||
customer.put("creator", "admin");
|
||||
custbasvo.add(customer);
|
||||
returnData.put("custbasvo", custbasvo);
|
||||
return returnData;
|
||||
|
@ -369,7 +372,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"));
|
||||
|
||||
//新增固定传递集团
|
||||
|
@ -383,7 +386,7 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
|
|||
parentvo.put("creator", "admin");
|
||||
|
||||
//客商名称
|
||||
parentvo.put("custname", formBean.getString("field0006"));
|
||||
parentvo.put("custname", formBean.getString("field0006").trim());
|
||||
|
||||
//客商类型(0 - 外部单位1 - 内部核算单位2 - 内部法人单位3 - 内部渠道成员)
|
||||
String custprop = formBean.getString("field0026")== null?"":formBean.getString("field0026");
|
||||
|
|
Loading…
Reference in New Issue