|
@@ -48,56 +48,56 @@ public class StorageController extends BaseController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 趋势统计
|
|
|
|
|
- */
|
|
|
|
|
- @GetMapping("/trendStatistics/{landType}")
|
|
|
|
|
- public R<TrendStatisticsRes> getTrendStatistics(@PathVariable String landType) {
|
|
|
|
|
- try {
|
|
|
|
|
- TrendStatisticsRes res = new TrendStatisticsRes();
|
|
|
|
|
- List<Map<String, Object>> areaTrendStatisticsList = new java.util.ArrayList<>(List.of());
|
|
|
|
|
- List<Map<String, Object>> supplyModeStatisticsList = new java.util.ArrayList<>(List.of());
|
|
|
|
|
-
|
|
|
|
|
- Map<String, Object> map1 = new HashMap<>();
|
|
|
|
|
- map1.put("year", 2023);
|
|
|
|
|
- map1.put("area", 3365.22);
|
|
|
|
|
-
|
|
|
|
|
- Map<String, Object> map2 = new HashMap<>();
|
|
|
|
|
- map2.put("year", 2024);
|
|
|
|
|
- map2.put("area", 18900.35);
|
|
|
|
|
-
|
|
|
|
|
- Map<String, Object> map3 = new HashMap<>();
|
|
|
|
|
- map3.put("year", 2025);
|
|
|
|
|
- map3.put("area", 2000.35);
|
|
|
|
|
- areaTrendStatisticsList.addAll(List.of(map1, map2, map3));
|
|
|
|
|
- res.setAreaTrendStatisticsList(areaTrendStatisticsList);
|
|
|
|
|
-
|
|
|
|
|
- Map<String, Object> modeMap1 = new HashMap<>();
|
|
|
|
|
- modeMap1.put("year", 2023);
|
|
|
|
|
- modeMap1.put("transferArea", 587.7);
|
|
|
|
|
- modeMap1.put("allocateArea", 500.5);
|
|
|
|
|
- modeMap1.put("otherArea", 498.23);
|
|
|
|
|
- supplyModeStatisticsList.add(modeMap1);
|
|
|
|
|
-
|
|
|
|
|
- Map<String, Object> modeMap2 = new HashMap<>();
|
|
|
|
|
- modeMap2.put("year", 2024);
|
|
|
|
|
- modeMap2.put("transferArea", 487.7);
|
|
|
|
|
- modeMap2.put("allocateArea", 400.5);
|
|
|
|
|
- modeMap2.put("otherArea", 398.23);
|
|
|
|
|
- supplyModeStatisticsList.add(modeMap2);
|
|
|
|
|
-
|
|
|
|
|
- Map<String, Object> modeMap3 = new HashMap<>();
|
|
|
|
|
- modeMap3.put("year", 2025);
|
|
|
|
|
- modeMap3.put("transferArea", 487.7);
|
|
|
|
|
- modeMap3.put("allocateArea", 400.5);
|
|
|
|
|
- modeMap3.put("otherArea", 398.23);
|
|
|
|
|
- supplyModeStatisticsList.add(modeMap3);
|
|
|
|
|
- res.setSupplyModeStatisticsList(supplyModeStatisticsList);
|
|
|
|
|
- return R.ok(res);
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- return R.fail(e.getMessage());
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// /**
|
|
|
|
|
+// * 趋势统计
|
|
|
|
|
+// */
|
|
|
|
|
+// @GetMapping("/trendStatistics/{landType}")
|
|
|
|
|
+// public R<TrendStatisticsRes> getTrendStatistics(@PathVariable String landType) {
|
|
|
|
|
+// try {
|
|
|
|
|
+// TrendStatisticsRes res = new TrendStatisticsRes();
|
|
|
|
|
+// List<Map<String, Object>> areaTrendStatisticsList = new java.util.ArrayList<>(List.of());
|
|
|
|
|
+// List<Map<String, Object>> supplyModeStatisticsList = new java.util.ArrayList<>(List.of());
|
|
|
|
|
+//
|
|
|
|
|
+// Map<String, Object> map1 = new HashMap<>();
|
|
|
|
|
+// map1.put("year", 2023);
|
|
|
|
|
+// map1.put("area", 3365.22);
|
|
|
|
|
+//
|
|
|
|
|
+// Map<String, Object> map2 = new HashMap<>();
|
|
|
|
|
+// map2.put("year", 2024);
|
|
|
|
|
+// map2.put("area", 18900.35);
|
|
|
|
|
+//
|
|
|
|
|
+// Map<String, Object> map3 = new HashMap<>();
|
|
|
|
|
+// map3.put("year", 2025);
|
|
|
|
|
+// map3.put("area", 2000.35);
|
|
|
|
|
+// areaTrendStatisticsList.addAll(List.of(map1, map2, map3));
|
|
|
|
|
+// res.setAreaTrendStatisticsList(areaTrendStatisticsList);
|
|
|
|
|
+//
|
|
|
|
|
+// Map<String, Object> modeMap1 = new HashMap<>();
|
|
|
|
|
+// modeMap1.put("year", 2023);
|
|
|
|
|
+// modeMap1.put("transferArea", 587.7);
|
|
|
|
|
+// modeMap1.put("allocateArea", 500.5);
|
|
|
|
|
+// modeMap1.put("otherArea", 498.23);
|
|
|
|
|
+// supplyModeStatisticsList.add(modeMap1);
|
|
|
|
|
+//
|
|
|
|
|
+// Map<String, Object> modeMap2 = new HashMap<>();
|
|
|
|
|
+// modeMap2.put("year", 2024);
|
|
|
|
|
+// modeMap2.put("transferArea", 487.7);
|
|
|
|
|
+// modeMap2.put("allocateArea", 400.5);
|
|
|
|
|
+// modeMap2.put("otherArea", 398.23);
|
|
|
|
|
+// supplyModeStatisticsList.add(modeMap2);
|
|
|
|
|
+//
|
|
|
|
|
+// Map<String, Object> modeMap3 = new HashMap<>();
|
|
|
|
|
+// modeMap3.put("year", 2025);
|
|
|
|
|
+// modeMap3.put("transferArea", 487.7);
|
|
|
|
|
+// modeMap3.put("allocateArea", 400.5);
|
|
|
|
|
+// modeMap3.put("otherArea", 398.23);
|
|
|
|
|
+// supplyModeStatisticsList.add(modeMap3);
|
|
|
|
|
+// res.setSupplyModeStatisticsList(supplyModeStatisticsList);
|
|
|
|
|
+// return R.ok(res);
|
|
|
|
|
+// } catch (Exception e) {
|
|
|
|
|
+// return R.fail(e.getMessage());
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 出入库趋势统计
|
|
* 出入库趋势统计
|
|
@@ -137,6 +137,24 @@ public class StorageController extends BaseController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 年末收储统计数据
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/getLandStock")
|
|
|
|
|
+ public R<List<Map<String, Object>>> landStock(@RequestParam String year) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ List<Map<String, Object>> res = storageServiceImpl.landStock(year);
|
|
|
|
|
+ return R.ok(res);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ return R.fail(e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 根据年份和类型查询土地收储统计项目列表
|
|
* 根据年份和类型查询土地收储统计项目列表
|
|
|
* supplyType: 0-全部,1-计划,2-完成
|
|
* supplyType: 0-全部,1-计划,2-完成
|