|
|
@@ -0,0 +1,168 @@
|
|
|
+package com.siwei.apply.controller.cadastre;
|
|
|
+
|
|
|
+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.BatchRateRes;
|
|
|
+import com.siwei.apply.domain.res.SupplyYearStatisticsRes;
|
|
|
+import com.siwei.apply.domain.res.TrendStatisticsRes;
|
|
|
+import com.siwei.apply.domain.vo.LandSupplyProjectVO;
|
|
|
+import com.siwei.apply.domain.vo.LandSupplyReportVO;
|
|
|
+import com.siwei.apply.domain.vo.YdbpDataFilterVo;
|
|
|
+import com.siwei.apply.service.cadastre.ISupplyService;
|
|
|
+import com.siwei.apply.service.cadastre.impl.BatchServiceImpl;
|
|
|
+import com.siwei.apply.service.cadastre.impl.StorageServiceImpl;
|
|
|
+import com.siwei.common.core.domain.R;
|
|
|
+import com.siwei.common.core.web.controller.BaseController;
|
|
|
+import org.apache.poi.ss.usermodel.*;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * 批次报批数据分析
|
|
|
+ *
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/cadastre/batch")
|
|
|
+public class ReportBatchController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ISupplyService supplyService;
|
|
|
+
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private BatchServiceImpl batchServiceImpl;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * 年度统计
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @GetMapping("/yearStatistics/{year}")
|
|
|
+ public R<BatchRateRes> getYearStatistics(@PathVariable String year) {
|
|
|
+ try {
|
|
|
+ BatchRateRes res = batchServiceImpl.yearStatistics(year);
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * 趋势分析
|
|
|
+ */
|
|
|
+ @GetMapping("/trendStatistics")
|
|
|
+ public R<BatchRateRes> getTrendStatistics() {
|
|
|
+ try {
|
|
|
+ BatchRateRes res = batchServiceImpl.trendStatistics("");
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据年份和供地类型查询土地供应统计报表数据
|
|
|
+ * @param year
|
|
|
+ * @param supplyType (1-计划,2-完成)
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/projectList")
|
|
|
+ public R<List<LandSupplyProjectVO>> getProjectList(@RequestParam(required = false) String year,@RequestParam Integer supplyType) {
|
|
|
+ try {
|
|
|
+ List<LandSupplyProjectVO> resList = supplyService.projectList(year,supplyType);
|
|
|
+ return R.ok(resList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/getPlanProject")
|
|
|
+ public R<GongdiJihua> getPlanProject(@RequestParam String propertyId) {
|
|
|
+ try {
|
|
|
+ GongdiJihua res = supplyService.getPlanProject(propertyId);
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/getActualProject")
|
|
|
+ public R<Map<String,Object>> getActualProject(@RequestParam String propertyId) {
|
|
|
+ try {
|
|
|
+ Map<String,Object> res = supplyService.getActualProject(propertyId);
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * 根据时间范围查询土地供应统计报表数据
|
|
|
+ * 供应用途分析报表
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @GetMapping("/report/purpose")
|
|
|
+ public R<LandSupplyReportVO> getTdgyProjectList(@RequestParam String startYear, @RequestParam String endYear) {
|
|
|
+ try {
|
|
|
+ LandSupplyReportVO res = supplyService.getTdgyPurposeReport(startYear,endYear);
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/landTypeList")
|
|
|
+ public R<List<LandType>> getLandTypeList() {
|
|
|
+ try {
|
|
|
+ return R.ok(supplyService.getLandTypeList());
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|