|
|
@@ -103,7 +103,6 @@ public class ParcelServiceImpl implements IParcelService {
|
|
|
List<ParcelStatisticsRes.DetailDTO> detailList = new ArrayList<>();
|
|
|
List<ParcelStatisticsRes.TdytDTO> tdytStatisticsList = new ArrayList<>();
|
|
|
Map<String,List<ParcelStatisticsRes.QlxzDTO>> qlxzStatisticsMap = new LinkedHashMap<>(); // 权利性质统计
|
|
|
- List<ParcelStatisticsRes.QlxzDTO> qlxzStatisticsList = new ArrayList<>(); // 权利性质统计
|
|
|
|
|
|
|
|
|
List<ParcelStatisticsRes.QllxSuoyouquanDTO> qllxSuoyouquanStatisticsList= new ArrayList<>(); // 权利类型所有权统计
|
|
|
@@ -160,39 +159,48 @@ public class ParcelServiceImpl implements IParcelService {
|
|
|
zdjbxxMapper.getDictByType("A7",null).forEach(item -> {
|
|
|
String name = item.get("name").toString();
|
|
|
String value = item.get("value").toString();
|
|
|
-
|
|
|
- //ddd
|
|
|
List<Zdjbxx> filterList = zdjbxxList.stream().filter(zd-> StringUtils.isNotBlank(zd.getQlxz())).filter(zd -> value.equals(zd.getQlxz())).collect(Collectors.toList());
|
|
|
if(CollectionUtils.isNotEmpty(filterList)){
|
|
|
- qlxzGroupedByYtMap.put(name, filterList);
|
|
|
+ qlxzGroupedByYtMap.put(name+"|"+value, filterList);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
+
|
|
|
+ List<ParcelStatisticsRes.QlxzDTO> gy_qlxzStatisticsList = new ArrayList<>(); // 权利性质统计
|
|
|
+ List<ParcelStatisticsRes.QlxzDTO> jt_qlxzStatisticsList = new ArrayList<>(); // 权利性质统计
|
|
|
+ List<ParcelStatisticsRes.QlxzDTO> wz_qlxzStatisticsList = new ArrayList<>(); // 权利性质统计
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//这里遍历map,然后进行统计数据;
|
|
|
if(MapUtils.isNotEmpty(qlxzGroupedByYtMap)){
|
|
|
for(Map.Entry<String, List<Zdjbxx>> entry : qlxzGroupedByYtMap.entrySet()){
|
|
|
ParcelStatisticsRes.QlxzDTO qlxzDTO = new ParcelStatisticsRes.QlxzDTO();
|
|
|
- qlxzDTO.setQlxzmc(entry.getKey());
|
|
|
+
|
|
|
double totalArea = 0.0;
|
|
|
for(Zdjbxx zd : entry.getValue()) {
|
|
|
totalArea += convertAreaToMu(zd.getZdmj(), zd.getMjdw());
|
|
|
}
|
|
|
- if(entry.getKey().contains("国有土地")){
|
|
|
- qlxzDTO.setQlxzlx("100");
|
|
|
- }else if(entry.getKey().contains("集体土地")){
|
|
|
- qlxzDTO.setQlxzlx("200");
|
|
|
- }else {
|
|
|
- qlxzDTO.setQlxzlx("0");
|
|
|
+ String[] arr = entry.getKey().split("|");
|
|
|
+ if(arr[1].equals("100") || arr[1].equals("200")) {
|
|
|
+ qlxzDTO.setQlxzmc(arr[0]);
|
|
|
+ qlxzDTO.setQlxzmj(String.format("%.2f", totalArea));
|
|
|
+ wz_qlxzStatisticsList.add(qlxzDTO);
|
|
|
+ }else if(arr[1].startsWith("1")) {
|
|
|
+ qlxzDTO.setQlxzmc(arr[0]);
|
|
|
+ qlxzDTO.setQlxzmj(String.format("%.2f", totalArea));
|
|
|
+ gy_qlxzStatisticsList.add(qlxzDTO);
|
|
|
+ }else if(arr[1].startsWith("2")) {
|
|
|
+ qlxzDTO.setQlxzmc(arr[0]);
|
|
|
+ qlxzDTO.setQlxzmj(String.format("%.2f", totalArea));
|
|
|
+ jt_qlxzStatisticsList.add(qlxzDTO);
|
|
|
}
|
|
|
- qlxzDTO.setQlxzmj(String.format("%.2f", totalArea));
|
|
|
- qlxzStatisticsList.add(qlxzDTO);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- qlxzStatisticsMap.put("gy",qlxzStatisticsList);
|
|
|
- qlxzStatisticsMap.put("jt",qlxzStatisticsList);
|
|
|
- qlxzStatisticsMap.put("wz",qlxzStatisticsList);
|
|
|
+ qlxzStatisticsMap.put("gy",gy_qlxzStatisticsList);
|
|
|
+ qlxzStatisticsMap.put("jt",jt_qlxzStatisticsList);
|
|
|
+ qlxzStatisticsMap.put("wz",wz_qlxzStatisticsList);
|
|
|
res.setQlxzStatisticsList(qlxzStatisticsMap);
|
|
|
|
|
|
//-------------------------------------------第四部分: 权利类型-所有权统计--------------------------------
|