|
|
@@ -581,7 +581,9 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|
|
dept.setPath(org.getPath());
|
|
|
}
|
|
|
|
|
|
- List<ConstructionDetailExport> constructionDetailExports = baseMapper.selectConstructionDetail(dept.getPath());
|
|
|
+ String findInSetOrder = this.handleFindInSetOrder(dept.getPath());
|
|
|
+
|
|
|
+ List<ConstructionDetailExport> constructionDetailExports = baseMapper.selectConstructionDetail(dept.getPath(),findInSetOrder);
|
|
|
/* //hang
|
|
|
constructionDetailExports.forEach(c -> {
|
|
|
SysOrg sysOrg = baseMapper.selectSysOrgById(c.getOrgId());
|
|
|
@@ -1285,8 +1287,11 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|
|
dept.setPath(sysOrg.getPath());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ String findInSetOrder = this.handleFindInSetOrder(dept.getPath());
|
|
|
+
|
|
|
List<OrgExtendExport> orgExtendExports= null;
|
|
|
- orgExtendExports = baseMapper.exportOrgExtend(dept, typeList);
|
|
|
+ orgExtendExports = baseMapper.exportOrgExtend(dept, typeList, findInSetOrder);
|
|
|
|
|
|
if (dept.getType() != null){
|
|
|
switch (dept.getType()){
|
|
|
@@ -1417,8 +1422,11 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|
|
dept.setPath(sysOrg.getPath());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ String findInSetOrder = this.handleFindInSetOrder(dept.getPath());
|
|
|
+
|
|
|
List<OrgPhysicalDefenseConstructionDetailExport> detailExports= null;
|
|
|
- detailExports = baseMapper.exportDefenseDetailExtend(dept, typeList);
|
|
|
+ detailExports = baseMapper.exportDefenseDetailExtend(dept, typeList, findInSetOrder);
|
|
|
|
|
|
try {
|
|
|
//营业网点需要单独处理:机构类型为营业网点,GA38没有营业网点数据的需要单独生成一条空的数据
|
|
|
@@ -1456,6 +1464,7 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ List<OrgPhysicalDefenseConstructionDetailExport> addList = new ArrayList<>();
|
|
|
if (!map.isEmpty()) {
|
|
|
Iterator<Map.Entry<Long, List<OrgPhysicalDefenseConstructionDetailExport>>> createIterator = map.entrySet().iterator();
|
|
|
while (createIterator.hasNext()) {
|
|
|
@@ -1469,9 +1478,33 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|
|
detail.setDateOfComplete(null);
|
|
|
detail.setDateOfCompliance(null);
|
|
|
detail.setReason(null);
|
|
|
- detailExports.add(detail);
|
|
|
+ addList.add(detail);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (addList.size() > 0) {
|
|
|
+ HashMap<Integer, OrgPhysicalDefenseConstructionDetailExport> indexMap = new HashMap<>();
|
|
|
+ int addCount = 1;
|
|
|
+ for (int i = 0; i < detailExports.size(); i++) {
|
|
|
+ OrgPhysicalDefenseConstructionDetailExport detailExport = detailExports.get(i);
|
|
|
+ for (int j = 0; j < addList.size(); j++) {
|
|
|
+ OrgPhysicalDefenseConstructionDetailExport addExport = addList.get(j);
|
|
|
+ if(ObjectUtil.equal(detailExport.getCity(), addExport.getCity()) && ObjectUtil.equal(detailExport.getAffiliatedBank(), addExport.getAffiliatedBank())
|
|
|
+ && ObjectUtil.equal(detailExport.getShortName(), addExport.getShortName())){
|
|
|
+ indexMap.put(i + addCount, addExport);
|
|
|
+ addCount ++;
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (!indexMap.isEmpty()){
|
|
|
+ for (Map.Entry<Integer, OrgPhysicalDefenseConstructionDetailExport> entry : indexMap.entrySet()) {
|
|
|
+ detailExports.add(entry.getKey(), entry.getValue());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
@@ -1508,4 +1541,14 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|
|
}
|
|
|
return org.getAffiliatedArea()+"-"+org.getAffiliatedBank()+"-"+org.getShortName();
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ private String handleFindInSetOrder(String path){
|
|
|
+ List<String> list = sysUserMapper.getFindInSetOrder(path);
|
|
|
+ if (list != null && list.size() > 0){
|
|
|
+ return String.join(",", list);
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
}
|