|
|
@@ -192,6 +192,11 @@ public class SupplyServiceImpl implements ISupplyService {
|
|
|
@Override
|
|
|
public TrendStatisticsRes trendStatistics(String landType) {
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
List<TdgyStatisticsRes> completeList = dgyMapper.getListByYear(null, landType, null, null);
|
|
|
|
|
|
TrendStatisticsRes res = new TrendStatisticsRes();
|
|
|
@@ -536,6 +541,43 @@ public class SupplyServiceImpl implements ISupplyService {
|
|
|
vo.setGeom(item.getGeom());
|
|
|
return vo;
|
|
|
}).collect(Collectors.toList());
|
|
|
+ } else if(supplyType == 0){
|
|
|
+
|
|
|
+ GongdiJihuaFilterVo filterVo = new GongdiJihuaFilterVo();
|
|
|
+ filterVo.setYear(year);
|
|
|
+ filterVo.setPageSize(100000);
|
|
|
+
|
|
|
+ List<GongdiJihua> planList = gongdiJihuaMapper.getList(filterVo);
|
|
|
+ List<LandSupplyProjectVO> resList1 = planList.stream().map(item -> {
|
|
|
+ LandSupplyProjectVO vo = new LandSupplyProjectVO();
|
|
|
+ vo.setProjectPropertyId(String.valueOf(item.getGid()));
|
|
|
+ vo.setProjectName(item.getXmmc());
|
|
|
+ vo.setCompanyName("暂无");
|
|
|
+ vo.setSupplyMethod(item.getGyfs());
|
|
|
+ vo.setSupplyType(supplyType.toString());
|
|
|
+ vo.setGeom(item.getGeom());
|
|
|
+ return vo;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+
|
|
|
+
|
|
|
+ List<TdgyStatisticsRes> completeList = dgyMapper.getListByYear(year, null, null, null);
|
|
|
+ List<LandSupplyProjectVO> resList2 = completeList.stream().map(item -> {
|
|
|
+ LandSupplyProjectVO vo = new LandSupplyProjectVO();
|
|
|
+ vo.setProjectPropertyId(item.getProjectId());
|
|
|
+ vo.setProjectName(item.getXmmc());
|
|
|
+ vo.setCompanyName(item.getCompany());
|
|
|
+ vo.setSupplyMethod(item.getGyfs());
|
|
|
+ vo.setSupplyType(supplyType.toString());
|
|
|
+ vo.setNodeId(item.getNodeId());
|
|
|
+ vo.setGeom(item.getGeom());
|
|
|
+ return vo;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ if(CollectionUtils.isNotEmpty(resList1)) {
|
|
|
+ resList.addAll(resList1);
|
|
|
+ }
|
|
|
+ if(CollectionUtils.isNotEmpty(resList2)) {
|
|
|
+ resList.addAll(resList2);
|
|
|
+ }
|
|
|
}
|
|
|
return resList;
|
|
|
}
|
|
|
@@ -551,6 +593,14 @@ public class SupplyServiceImpl implements ISupplyService {
|
|
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<LandType> getLandTypeList() {
|
|
|
+ // 获取所有一级分类
|
|
|
+ List<LandType> landTypeList = landTypeMapper.selectFirstLevel();
|
|
|
+ return landTypeList;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
private LandSupplyReportDTO.TotalDTO buildTotalDTO(Map<String, Object> summary) {
|
|
|
LandSupplyReportDTO.TotalDTO total = new LandSupplyReportDTO.TotalDTO();
|