集团的科目会在下级公司也生成一个使用范围,需要去掉
This commit is contained in:
parent
60adcedbf0
commit
72bb799fee
|
|
@ -94,7 +94,6 @@ public class AspAccountControler {
|
||||||
// OperationResult operResult;
|
// OperationResult operResult;
|
||||||
Map<String, Long> acctids = new HashMap<>();//科目编号和ID对应关系
|
Map<String, Long> acctids = new HashMap<>();//科目编号和ID对应关系
|
||||||
Map<String, DynamicObject> accountMaps = new HashMap<>();//将科目编号与对象关联
|
Map<String, DynamicObject> accountMaps = new HashMap<>();//将科目编号与对象关联
|
||||||
boolean isIncludNew = false;//本次请求是否有新增科目的标记
|
|
||||||
|
|
||||||
//先根据基础信息在集团层面生成科目,不考虑核算维度,使用逐级分配
|
//先根据基础信息在集团层面生成科目,不考虑核算维度,使用逐级分配
|
||||||
//再根据公司信息进行科目分配
|
//再根据公司信息进行科目分配
|
||||||
|
|
@ -207,7 +206,6 @@ public class AspAccountControler {
|
||||||
// }
|
// }
|
||||||
//处理科目使用范围
|
//处理科目使用范围
|
||||||
DB.update(DBRoute.of("fi"), insertSql, new Object[]{kmId,JhzjUtils.GROUPID});
|
DB.update(DBRoute.of("fi"), insertSql, new Object[]{kmId,JhzjUtils.GROUPID});
|
||||||
isIncludNew = true;
|
|
||||||
}
|
}
|
||||||
acctids.put(number,acctInfo.getLong("id"));
|
acctids.put(number,acctInfo.getLong("id"));
|
||||||
accountMaps.put(number,acctInfo);
|
accountMaps.put(number,acctInfo);
|
||||||
|
|
@ -287,10 +285,8 @@ public class AspAccountControler {
|
||||||
}
|
}
|
||||||
//最后处理科目的反分配
|
//最后处理科目的反分配
|
||||||
EsbUtils.handleUnAssignNew(companysJson, acctids, entityName);
|
EsbUtils.handleUnAssignNew(companysJson, acctids, entityName);
|
||||||
//本次包含新增科目的话,需要处理一下组织范围,集团科目会在下级公司也生成一个范围,需要去掉
|
//每次接口调用后,处理一下组织范围,集团的科目会在下级公司也生成一个使用范围,需要去掉
|
||||||
if(isIncludNew){
|
|
||||||
DB.update(DBRoute.of("fi"), deleteOrgSql, null);
|
DB.update(DBRoute.of("fi"), deleteOrgSql, null);
|
||||||
}
|
|
||||||
|
|
||||||
if(itemsJson.isEmpty()){
|
if(itemsJson.isEmpty()){
|
||||||
EsbUtils.saveLog(apimenthod,"ESB",json_obj.toString(),null,true,"API");
|
EsbUtils.saveLog(apimenthod,"ESB",json_obj.toString(),null,true,"API");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue