|
@@ -1,5 +1,6 @@
|
|
|
package platform.modules.government.web;
|
|
package platform.modules.government.web;
|
|
|
|
|
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
|
|
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -12,21 +13,26 @@ import platform.common.Constant;
|
|
|
import platform.common.base.controller.BaseController;
|
|
import platform.common.base.controller.BaseController;
|
|
|
import platform.common.base.model.DictionaryItem;
|
|
import platform.common.base.model.DictionaryItem;
|
|
|
import platform.common.base.service.DictionaryItemService;
|
|
import platform.common.base.service.DictionaryItemService;
|
|
|
|
|
+import platform.common.util.DateUtil;
|
|
|
import platform.modules.government.dto.*;
|
|
import platform.modules.government.dto.*;
|
|
|
import platform.modules.government.dto.StatisticView;
|
|
import platform.modules.government.dto.StatisticView;
|
|
|
import platform.modules.government.entity.ProjectServiceType;
|
|
import platform.modules.government.entity.ProjectServiceType;
|
|
|
import platform.modules.government.entity.ProjectType;
|
|
import platform.modules.government.entity.ProjectType;
|
|
|
|
|
+import platform.modules.government.entity.Street;
|
|
|
import platform.modules.government.service.GovStatisticsService;
|
|
import platform.modules.government.service.GovStatisticsService;
|
|
|
import platform.modules.government.service.ProjectServiceTypeService;
|
|
import platform.modules.government.service.ProjectServiceTypeService;
|
|
|
import platform.modules.government.service.ProjectTypeService;
|
|
import platform.modules.government.service.ProjectTypeService;
|
|
|
|
|
+import platform.modules.government.service.StreetService;
|
|
|
import platform.modules.sys.web.ResponseMessage;
|
|
import platform.modules.sys.web.ResponseMessage;
|
|
|
|
|
|
|
|
|
|
+import java.text.ParseException;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
|
@RequestMapping("/statistics")
|
|
@RequestMapping("/statistics")
|
|
|
|
|
+@Slf4j
|
|
|
public class GovStatisticsController extends BaseController {
|
|
public class GovStatisticsController extends BaseController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -38,6 +44,9 @@ public class GovStatisticsController extends BaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ProjectTypeService projectTypeService;
|
|
private ProjectTypeService projectTypeService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private StreetService streetService;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ProjectServiceTypeService projectServiceTypeService;
|
|
private ProjectServiceTypeService projectServiceTypeService;
|
|
|
|
|
|
|
@@ -105,6 +114,63 @@ public class GovStatisticsController extends BaseController {
|
|
|
return ResponseMessage.success("success", statisticsDtoList);
|
|
return ResponseMessage.success("success", statisticsDtoList);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 产业用地
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/getIndustrialLandSupplyProjectNum")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Object getIndustrialLandSupplyProjectNum(String year) {
|
|
|
|
|
+ List<GovIndustrialLandSupplyProjectNumDto> statisticsDtoList = govStatisticsService.getIndustrialLandSupplyProjectNum(year);
|
|
|
|
|
+ return ResponseMessage.success("success", statisticsDtoList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 产业用地月度单据对比统计
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/getInstrialLandApplyMouthlyDataByYear")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Object getInstrialLandApplyMouthlyDataByYear(String year) {
|
|
|
|
|
+ List<GovStatisticsDto> statisticsDtoList = govStatisticsService.getInstrialLandApplyMouthlyDataByYear(year);
|
|
|
|
|
+ return ResponseMessage.success("success", statisticsDtoList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 产业用地状态对比-项目预审阶段
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/getInstrialLandApplyStatusCommerceSummaryByYear")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Object getInstrialLandApplyStatusCommerceSummaryByYear(String year) {
|
|
|
|
|
+ List<GovStatisticsDto> statisticsDtoList = govStatisticsService.getInstrialLandApplyStatusCommerceSummaryByYear(year);
|
|
|
|
|
+ return ResponseMessage.success("success", statisticsDtoList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 产业用地状态对比-项目供地阶段
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/getInstrialLandApplyStatusSummaryByYear")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Object getInstrialLandApplyStatusSummaryByYear(String year) {
|
|
|
|
|
+ List<GovStatisticsDto> statisticsDtoList = govStatisticsService.getInstrialLandApplyStatusSummaryByYear(year);
|
|
|
|
|
+ return ResponseMessage.success("success", statisticsDtoList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 产业用地状态对比
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/getInstrialLandApplyStageSummaryByYear")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Object getInstrialLandApplyStageSummaryByYear(String year) {
|
|
|
|
|
+ List<GovStatisticsDto> statisticsDtoList = govStatisticsService.getInstrialLandApplyStageSummaryByYear(year);
|
|
|
|
|
+ return ResponseMessage.success("success", statisticsDtoList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@GetMapping("/toProjectStatistics")
|
|
@GetMapping("/toProjectStatistics")
|
|
|
public Object toProjectStatistics(ModelMap modelMap) {
|
|
public Object toProjectStatistics(ModelMap modelMap) {
|
|
|
List<ProjectType> projectTypeList = projectTypeService.selectAllProjectType();
|
|
List<ProjectType> projectTypeList = projectTypeService.selectAllProjectType();
|
|
@@ -112,6 +178,27 @@ public class GovStatisticsController extends BaseController {
|
|
|
return BASE_GOVERNMENT_PATH + "gov_statistics/project_statistics";
|
|
return BASE_GOVERNMENT_PATH + "gov_statistics/project_statistics";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping("/toStocklandPrejuiceStatistics")
|
|
|
|
|
+ public Object toStocklandPrejuiceStatistics(ModelMap modelMap) throws ParseException {
|
|
|
|
|
+ List<Street> streets = streetService.findList();
|
|
|
|
|
+ modelMap.put("streets", streets);
|
|
|
|
|
+ // 获取到年份列表
|
|
|
|
|
+ List<String> utilTodayYearList = new ArrayList<>();
|
|
|
|
|
+ try {
|
|
|
|
|
+ utilTodayYearList = DateUtil.getUtilTodayYearList();
|
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ log.error(e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ modelMap.put("years", utilTodayYearList);
|
|
|
|
|
+ modelMap.put("currentYear", DateUtil.getCurrentYear());
|
|
|
|
|
+ // 查询统计数据每个街道,每年的
|
|
|
|
|
+ List<ProjectType> projectTypeList = projectTypeService.selectAllProjectType();
|
|
|
|
|
+ modelMap.put("projectTypeList", projectTypeList);
|
|
|
|
|
+ return BASE_GOVERNMENT_PATH + "gov_statistics/stockland_prejudice_statistics";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 区级工业经济扶持申请单据占比
|
|
* 区级工业经济扶持申请单据占比
|
|
|
*
|
|
*
|