客户接口优化1
This commit is contained in:
parent
e4719f1c44
commit
f52ba0e883
|
|
@ -45,6 +45,11 @@ public class EsbUtils {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static DynamicObject getGroupOrg(){
|
||||||
|
//获取集团组织对象
|
||||||
|
return BusinessDataServiceHelper.loadSingleFromCache(JhzjUtils.GROUPID,orgName);
|
||||||
|
}
|
||||||
|
|
||||||
//获取当前核算组织的编号和id对应关系
|
//获取当前核算组织的编号和id对应关系
|
||||||
public static Map<String, Long> getOrgNumberIds(){
|
public static Map<String, Long> getOrgNumberIds(){
|
||||||
Map<String, Long> orgids = new HashMap<>();
|
Map<String, Long> orgids = new HashMap<>();
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ public class CustomerControler {
|
||||||
DynamicObject custgroupdetail;
|
DynamicObject custgroupdetail;
|
||||||
Map<String, Long> cusids = new HashMap<>();//客户编号和ID对应关系
|
Map<String, Long> cusids = new HashMap<>();//客户编号和ID对应关系
|
||||||
OperateOption oop = OperateOption.create();
|
OperateOption oop = OperateOption.create();
|
||||||
|
DynamicObject grouporginfo = EsbUtils.getGroupOrg();
|
||||||
for (int i = 0; i < detailsJson.size(); i++) {
|
for (int i = 0; i < detailsJson.size(); i++) {
|
||||||
json_body = detailsJson.getJSONObject(i);
|
json_body = detailsJson.getJSONObject(i);
|
||||||
cusnumber = json_body.getString("code");
|
cusnumber = json_body.getString("code");
|
||||||
|
|
@ -115,8 +116,8 @@ public class CustomerControler {
|
||||||
currentCus.set("enable",1);//默认可用
|
currentCus.set("enable",1);//默认可用
|
||||||
currentCus.set("type","1");//伙伴类型 默认法人企业
|
currentCus.set("type","1");//伙伴类型 默认法人企业
|
||||||
currentCus.set("bizfunction",",1,2,3,4,");//业务职能 默认全选
|
currentCus.set("bizfunction",",1,2,3,4,");//业务职能 默认全选
|
||||||
// currentCus.set("createorg", JhzjUtils.GROUPID);//创建组织 默认为集团
|
currentCus.set("createorg", grouporginfo);//创建组织 默认为集团
|
||||||
// currentCus.set("org", JhzjUtils.GROUPID);//管理组织 默认为集团
|
currentCus.set("org", grouporginfo);//管理组织 默认为集团
|
||||||
currentCus.set("ctrlstrategy","1");//控制策略 默认逐级分配1 自由分配2
|
currentCus.set("ctrlstrategy","1");//控制策略 默认逐级分配1 自由分配2
|
||||||
currentCus.set("group",custype.getLong("id"));//客户分组
|
currentCus.set("group",custype.getLong("id"));//客户分组
|
||||||
// currentCus.set("bitindex",1);//位图
|
// currentCus.set("bitindex",1);//位图
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue