|
|
@@ -115,21 +115,21 @@ public class TauvInspectFileServiceImpl extends BaseServiceImpl<TauvInspectFileM |
|
|
|
if (map.containsKey("driverAreaType") && !StringUtils.isEmpty(map.get("driverAreaType")) && map.containsKey("driverArea") && !StringUtils.isEmpty(map.get("driverArea"))) { |
|
|
|
Integer driverAreaType = Integer.valueOf(map.get("driverAreaType").toString()); |
|
|
|
BigInteger driverArea = BigInteger.valueOf(Long.valueOf(map.get("driverArea").toString())); |
|
|
|
List<BigInteger> cityIds = new ArrayList<>(); |
|
|
|
if (driverArea != null) { |
|
|
|
if (driverAreaType == 1) { |
|
|
|
// 区划所有(取本级及子级区划ID) |
|
|
|
cityIds = lsCityService.getChildCityIds(driverArea); |
|
|
|
// 加入当前选中的区划 |
|
|
|
cityIds.add(driverArea); |
|
|
|
} else { |
|
|
|
// 本级河湖区划 |
|
|
|
cityIds.add(driverArea); |
|
|
|
} |
|
|
|
} |
|
|
|
String cityIdsStr = org.apache.commons.lang3.StringUtils.join(cityIds.toArray(), ","); |
|
|
|
String[] cityIdsList = cityIdsStr.split(","); |
|
|
|
map.put("driverArea", cityIdsList); |
|
|
|
// List<BigInteger> cityIds = new ArrayList<>(); |
|
|
|
// if (driverArea != null) { |
|
|
|
// if (driverAreaType == 1) { |
|
|
|
// // 区划所有(取本级及子级区划ID) |
|
|
|
// cityIds = lsCityService.getChildCityIds(driverArea); |
|
|
|
// // 加入当前选中的区划 |
|
|
|
// cityIds.add(driverArea); |
|
|
|
// } else { |
|
|
|
// // 本级河湖区划 |
|
|
|
// cityIds.add(driverArea); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// String cityIdsStr = org.apache.commons.lang3.StringUtils.join(cityIds.toArray(), ","); |
|
|
|
// String[] cityIdsList = cityIdsStr.split(","); |
|
|
|
map.put("driverArea", driverArea); |
|
|
|
} else { |
|
|
|
map.remove("driverArea"); |
|
|
|
} |