|
|
@@ -1,24 +1,16 @@
|
|
|
package com.siwei.apply.service.cadastre.impl;
|
|
|
|
|
|
-import com.siwei.apply.domain.GongdiJihua;
|
|
|
-import com.siwei.apply.domain.LandType;
|
|
|
import com.siwei.apply.domain.cadastre.LandSupplyReportDTO;
|
|
|
import com.siwei.apply.domain.res.*;
|
|
|
-import com.siwei.apply.domain.vo.GongdiJihuaFilterVo;
|
|
|
-import com.siwei.apply.domain.vo.LandSupplyProjectVO;
|
|
|
-import com.siwei.apply.domain.vo.LandSupplyReportVO;
|
|
|
-import com.siwei.apply.enums.LandUseTypeEnum;
|
|
|
+
|
|
|
+import com.siwei.apply.mapper.GjShijiShouchuMapper;
|
|
|
import com.siwei.apply.mapper.GongdiJihuaMapper;
|
|
|
import com.siwei.apply.mapper.LandTypeMapper;
|
|
|
-import com.siwei.apply.mapper.TdgyMapper;
|
|
|
-import com.siwei.common.core.utils.StringUtils;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
@Service
|
|
|
@@ -28,15 +20,41 @@ public class StorageServiceImpl {
|
|
|
private GongdiJihuaMapper gongdiJihuaMapper;
|
|
|
|
|
|
@Autowired
|
|
|
- private TdgyMapper dgyMapper;
|
|
|
+ private GjShijiShouchuMapper gjShijiShouchuMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private LandTypeMapper landTypeMapper;
|
|
|
|
|
|
|
|
|
|
|
|
+ //统计分析
|
|
|
+ public List<TrendStatisticsData> getData1() {
|
|
|
+ List<Map<String, Object>> statsList = gjShijiShouchuMapper.getStatsByYear();
|
|
|
+ List<TrendStatisticsData> res = new ArrayList<>();
|
|
|
+ if (CollectionUtils.isNotEmpty(statsList)) {
|
|
|
+ for (Map<String, Object> stat : statsList) {
|
|
|
+ TrendStatisticsData data = new TrendStatisticsData();
|
|
|
+ data.setYear(String.valueOf(stat.get("year")));
|
|
|
+ data.setInDataArea(String.valueOf(stat.get("in_data_area")));
|
|
|
+ data.setOutDataArea("0");
|
|
|
+ res.add(data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- private LandSupplyReportDTO.CompletedDTO buildCompletedDTO(Double area, Integer count, Integer transfer, Integer allocation, Integer other) {
|
|
|
+ public LandSupplyReportDTO.CompletedDTO buildCompletedDTO(Double area, Integer count, Integer transfer, Integer allocation, Integer other) {
|
|
|
LandSupplyReportDTO.CompletedDTO completed = new LandSupplyReportDTO.CompletedDTO();
|
|
|
completed.setArea(area);
|
|
|
completed.setCount(count);
|