|
|
@@ -1,22 +1,15 @@
|
|
|
package com.siwei.apply.controller.cadastre;
|
|
|
|
|
|
-
|
|
|
import com.siwei.apply.domain.cadastre.ParcelStatisticsRes;
|
|
|
|
|
|
+import com.siwei.apply.domain.cadastre.Zdjbxx;
|
|
|
import com.siwei.apply.service.cadastre.IParcelService;
|
|
|
import com.siwei.common.core.domain.R;
|
|
|
import com.siwei.common.core.web.controller.BaseController;
|
|
|
import org.apache.poi.ss.usermodel.*;
|
|
|
-import org.apache.poi.ss.util.CellRangeAddress;
|
|
|
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-import java.net.URLEncoder;
|
|
|
-import java.nio.charset.StandardCharsets;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.LinkedHashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -31,13 +24,27 @@ public class ParcelAnalysisController extends BaseController {
|
|
|
@Autowired
|
|
|
private IParcelService parcelService;
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * 地籍分析接口
|
|
|
+ * 通过地籍代码获取年度统计数据
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @GetMapping("/zd/{djzqdm}")
|
|
|
+ public R<List<Zdjbxx>> getZDList(@PathVariable String djzqdm) {
|
|
|
+ try {
|
|
|
+ List<Zdjbxx> res = parcelService.zdList(djzqdm);
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* 地籍分析接口
|
|
|
* 获取地籍区列表
|
|
|
- *
|
|
|
*/
|
|
|
@GetMapping("/statistics/djzq")
|
|
|
public R<List<Map<String,Object>>> djzqList() {
|
|
|
@@ -49,7 +56,6 @@ public class ParcelAnalysisController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* 地籍分析接口
|
|
|
@@ -72,11 +78,6 @@ public class ParcelAnalysisController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// /**
|
|
|
// *
|
|
|
// * 趋势统计
|