增加供应商同步更新插件

This commit is contained in:
476474485@qq.com 2025-03-17 10:30:58 +08:00
parent 543abfd826
commit 0a25d34363
1 changed files with 39 additions and 4 deletions
base-buildpackage/src/main/java/com/hzya/frame/plugin/wscustomersynchronizationevent/service/impl

View File

@ -301,6 +301,24 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
JSONArray banks = new JSONArray();
JSONObject bank = new JSONObject();
bank.put("accaddr", "银行地址");
String accountproperty = formBean.getString("field0042");
switch (accountproperty){
case "-3164025096780690930":
accountproperty = "电汇账户";
break;
case "7943667274710336919":
accountproperty = "电汇和承兑账户";
break;
case "2952563644985590023":
accountproperty = "承兑账户";
break;
default:
accountproperty = null;
break;
}
//账户性质 field0042
bank.put("remcode",accountproperty);
//银行账号
bank.put("account", formBean.getString("field0011"));
//账户名称
@ -348,15 +366,32 @@ public class WsCustomerSynchronizationEventServiceImpl extends BaseService<WsCus
parentvo.put("custprop", custprop);
//客商简称
parentvo.put("custshortname",formBean.getString("field0001"));
//币种
parentvo.put("def1111",formBean.getString("field0057"));
//销售方式
String def1 = formBean.getString("field0024");
switch (def1){
case "-285414580163689148":
def1 = "经销";
break;
case "-3463202988521339445":
def1 = "直销";
break;
default:
def1 = null;
break;
}
//销售方式
parentvo.put("def1",def1);
//邮箱
parentvo.put("email",formBean.getString("field0052"));
//联系人1
parentvo.put("linkman1",formBean.getString("field0010"));
parentvo.put("memo",formBean.getString("field0054"));
//手机
parentvo.put("mobilephone1",formBean.getString("field0008"));
//通信地址
parentvo.put("conaddr",formBean.getString("field0038"));
//电话1 电话手机
parentvo.put("phone1",formBean.getString("field0008"));
//所属地区编码 TODO 修改为取编码
parentvo.put("pk_areacl",formBean.getString("field0062"));
//总公司名称 TODO 修改为取编码