|
@@ -40,6 +40,19 @@ public class ParcelServiceImpl implements IParcelService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private LandTypeMapper landTypeMapper;
|
|
private LandTypeMapper landTypeMapper;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<Zdjbxx> zdList(String djzqdm) {
|
|
|
|
|
+ if(StringUtils.isBlank(djzqdm) || djzqdm.matches("[0]+")){
|
|
|
|
|
+ djzqdm = "";
|
|
|
|
|
+ }
|
|
|
|
|
+ if(StringUtils.isNotBlank(djzqdm) && djzqdm.length() != 12){
|
|
|
|
|
+ throw new ServiceException("地籍代码长度必须为12位");
|
|
|
|
|
+ }
|
|
|
|
|
+ return zdjbxxMapper.getListByDjzqdm(djzqdm);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public List<Map<String, Object>> djzqList() {
|
|
public List<Map<String, Object>> djzqList() {
|
|
|
return zdjbxxMapper.getDjzqWithDjqList();
|
|
return zdjbxxMapper.getDjzqWithDjqList();
|
|
@@ -87,8 +100,8 @@ public class ParcelServiceImpl implements IParcelService {
|
|
|
detailList.add(buildDetailDTO(zdjbxxList, "0"));
|
|
detailList.add(buildDetailDTO(zdjbxxList, "0"));
|
|
|
res.setLandNumStatisticsList(detailList);
|
|
res.setLandNumStatisticsList(detailList);
|
|
|
|
|
|
|
|
- //todo 第二部分,主要填充tdytStatisticsList这个对象,统计查询出来的地籍数据的土地用途统计、
|
|
|
|
|
- // 获取所有一级分类
|
|
|
|
|
|
|
+ //第二部分,主要填充tdytStatisticsList这个对象,统计查询出来的地籍数据的土地用途统计、
|
|
|
|
|
+ //获取所有一级分类
|
|
|
List<LandType> landTypeList = landTypeMapper.selectFirstLevel();
|
|
List<LandType> landTypeList = landTypeMapper.selectFirstLevel();
|
|
|
Map<String,List<Zdjbxx>> groupedByYtMap = new LinkedHashMap<>();
|
|
Map<String,List<Zdjbxx>> groupedByYtMap = new LinkedHashMap<>();
|
|
|
landTypeList.forEach(item -> {
|
|
landTypeList.forEach(item -> {
|
|
@@ -204,7 +217,7 @@ public class ParcelServiceImpl implements IParcelService {
|
|
|
for(Zdjbxx zd : entry.getValue()) {
|
|
for(Zdjbxx zd : entry.getValue()) {
|
|
|
totalArea += convertAreaToMu(zd.getZdmj(), zd.getMjdw());
|
|
totalArea += convertAreaToMu(zd.getZdmj(), zd.getMjdw());
|
|
|
}
|
|
}
|
|
|
- if(entry.getKey().contains("国有") && entry.getKey().contains("国家")){
|
|
|
|
|
|
|
+ if(entry.getKey().contains("国有") || entry.getKey().contains("国家")){
|
|
|
qllxSuoyouquanDTO.setQllx("100");
|
|
qllxSuoyouquanDTO.setQllx("100");
|
|
|
}else if(entry.getKey().contains("集体")){
|
|
}else if(entry.getKey().contains("集体")){
|
|
|
qllxSuoyouquanDTO.setQllx("200");
|
|
qllxSuoyouquanDTO.setQllx("200");
|