|
|
|
|
@ -143,6 +143,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
|
|
|
|
|
// 分组ID的映射:xxx(内部ID)——长沙县局ID
|
|
|
|
|
Map<String, Long> resultMap = resultList.stream().collect(Collectors.toMap(map -> (String) map.get("departId"), map -> (Long) map.get("groupId"))); |
|
|
|
|
List<Long> groupIds = new ArrayList<>(); |
|
|
|
|
log.info("映射成是我们单位的数据"); |
|
|
|
|
// 映射成是我们单位的数据
|
|
|
|
|
generateBusinessDepartList(happenTime, gBaseJJDSList, resultMap, resultMap2, resultMap3, groupIds, businessDepartList, gBaseAJJBXXListSA, gBaseAJJBXXListLA, gBaseAJJBXXListPA); |
|
|
|
|
List<Map<Long, Object>> nameList = statisticsGroupMapper.getNameByGroupIds(groupIds); |
|
|
|
|
@ -160,7 +161,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
|
|
|
|
|
|
|
|
|
|
private static void generateBusinessDepartList(List<Date> happenTime, List<GBaseJJD> gBaseJJDSList, Map<String, Long> resultMap, Map<String, String> resultMap2, Map<String, String> resultMap3, List<Long> groupIds, List<BusinessDepart> businessDepartList, List<GBaseAJJBXX> gBaseAJJBXXListSA, List<GBaseAJJBXX> gBaseAJJBXXListLA, List<GBaseAJJBXX> gBaseAJJBXXListPA) { |
|
|
|
|
for (GBaseJJD gBaseJJD : gBaseJJDSList) { |
|
|
|
|
Long groupId = Long.valueOf(resultMap2.get(gBaseJJD.getGxdwdm())); |
|
|
|
|
Long groupId = resultMap.get(resultMap2.get(gBaseJJD.getGxdwdm())); |
|
|
|
|
if (groupId == null) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
@ -169,7 +170,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
|
|
|
|
|
businessDepartList.add(businessDepart); |
|
|
|
|
} |
|
|
|
|
for (GBaseAJJBXX gBaseAJJBXX : gBaseAJJBXXListSA) { |
|
|
|
|
Long groupId = Long.valueOf(resultMap2.get(gBaseAJJBXX.getBADWIDdm())); |
|
|
|
|
Long groupId = resultMap.get(resultMap2.get(gBaseAJJBXX.getBADWIDdm())); |
|
|
|
|
if (groupId == null) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
@ -178,7 +179,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
|
|
|
|
|
businessDepartList.add(businessDepart); |
|
|
|
|
} |
|
|
|
|
for (GBaseAJJBXX gBaseAJJBXX : gBaseAJJBXXListLA) { |
|
|
|
|
Long groupId = Long.valueOf(resultMap2.get(gBaseAJJBXX.getBADWIDdm())); |
|
|
|
|
Long groupId = resultMap.get(resultMap2.get(gBaseAJJBXX.getBADWIDdm())); |
|
|
|
|
if (groupId == null) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
@ -187,7 +188,7 @@ public class BusinessDepartService extends ServiceImpl<BusinessDepartMapper, Bus
|
|
|
|
|
businessDepartList.add(businessDepart); |
|
|
|
|
} |
|
|
|
|
for (GBaseAJJBXX gBaseAJJBXX : gBaseAJJBXXListPA) { |
|
|
|
|
Long groupId = Long.valueOf(resultMap2.get(gBaseAJJBXX.getBADWIDdm())); |
|
|
|
|
Long groupId = resultMap.get(resultMap2.get(gBaseAJJBXX.getBADWIDdm())); |
|
|
|
|
if (groupId == null) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|