|
@@ -45,7 +45,7 @@ public class StorageController extends BaseController {
|
|
|
List<ProjectSupplyRes> projectSupplyList = new java.util.ArrayList<>(List.of()); // 供应方式
|
|
List<ProjectSupplyRes> projectSupplyList = new java.util.ArrayList<>(List.of()); // 供应方式
|
|
|
storageRate.setCompleteRate(78);
|
|
storageRate.setCompleteRate(78);
|
|
|
storageRate.setPlanProjectCount(15);
|
|
storageRate.setPlanProjectCount(15);
|
|
|
- storageRate.setCompleteProjectCount(11);
|
|
|
|
|
|
|
+ storageRate.setCompleteProjectCount(17);
|
|
|
storageRate.setPlanArea(788.6f);
|
|
storageRate.setPlanArea(788.6f);
|
|
|
storageRate.setCompleteArea(548.2f);
|
|
storageRate.setCompleteArea(548.2f);
|
|
|
storageRate.setGdUnit("亩");
|
|
storageRate.setGdUnit("亩");
|
|
@@ -101,8 +101,8 @@ public class StorageController extends BaseController {
|
|
|
List<LandUseRes> landUseStatisticsList = new java.util.ArrayList<>(List.of()); // 用途分析
|
|
List<LandUseRes> landUseStatisticsList = new java.util.ArrayList<>(List.of()); // 用途分析
|
|
|
List<ProjectSupplyRes> projectSupplyList = new java.util.ArrayList<>(List.of()); // 供应方式
|
|
List<ProjectSupplyRes> projectSupplyList = new java.util.ArrayList<>(List.of()); // 供应方式
|
|
|
storageRate.setCompleteRate(78 + (int) (Math.random() * 10));
|
|
storageRate.setCompleteRate(78 + (int) (Math.random() * 10));
|
|
|
- storageRate.setPlanProjectCount(15 + (int) (Math.random() * 5));
|
|
|
|
|
- storageRate.setCompleteProjectCount(11 + (int) (Math.random() * 5));
|
|
|
|
|
|
|
+ storageRate.setPlanProjectCount(33 + (int) (Math.random() * 5));
|
|
|
|
|
+ storageRate.setCompleteProjectCount(31 + (int) (Math.random() * 5));
|
|
|
storageRate.setPlanArea((float) (Math.round((788.6f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
storageRate.setPlanArea((float) (Math.round((788.6f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
|
storageRate.setCompleteArea((float) (Math.round((548.2f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
storageRate.setCompleteArea((float) (Math.round((548.2f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
|
storageRate.setGdUnit("亩");
|
|
storageRate.setGdUnit("亩");
|
|
@@ -152,24 +152,63 @@ public class StorageController extends BaseController {
|
|
|
|
|
|
|
|
projectSupplyList.addAll(List.of(projectSupply1, projectSupply2, projectSupply3, projectSupply4, projectSupply5));
|
|
projectSupplyList.addAll(List.of(projectSupply1, projectSupply2, projectSupply3, projectSupply4, projectSupply5));
|
|
|
res.setProjectSupplyList(projectSupplyList);
|
|
res.setProjectSupplyList(projectSupplyList);
|
|
|
- }else if (year.equalsIgnoreCase("2026")) {
|
|
|
|
|
|
|
+ }else if (year.equalsIgnoreCase("2022")) {
|
|
|
StorageRateRes storageRate = new StorageRateRes();
|
|
StorageRateRes storageRate = new StorageRateRes();
|
|
|
List<LandUseRes> landUseStatisticsList = new java.util.ArrayList<>(List.of()); // 用途分析
|
|
List<LandUseRes> landUseStatisticsList = new java.util.ArrayList<>(List.of()); // 用途分析
|
|
|
List<ProjectSupplyRes> projectSupplyList = new java.util.ArrayList<>(List.of()); // 供应方式
|
|
List<ProjectSupplyRes> projectSupplyList = new java.util.ArrayList<>(List.of()); // 供应方式
|
|
|
|
|
+ storageRate.setCompleteRate(78 + (int) (Math.random() * 10));
|
|
|
|
|
+ storageRate.setPlanProjectCount(35 + (int) (Math.random() * 5));
|
|
|
|
|
+ storageRate.setCompleteProjectCount(21 + (int) (Math.random() * 5));
|
|
|
|
|
+ storageRate.setPlanArea((float) (Math.round((788.6f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
|
|
|
+ storageRate.setCompleteArea((float) (Math.round((548.2f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
|
|
|
+ storageRate.setGdUnit("亩");
|
|
|
|
|
+ storageRate.setEstimatedCost(1254.6f);
|
|
|
|
|
+ storageRate.setExpenditureCost(1000.3f);
|
|
|
res.setStorageRate(storageRate);
|
|
res.setStorageRate(storageRate);
|
|
|
|
|
+
|
|
|
|
|
+ // --------------土地用途分析----------------------
|
|
|
|
|
+ // 城镇住宅用地,教育用地,商业用地,工业用地,物流仓储用地,公路用地,工业绿地
|
|
|
|
|
+ String[] landTypes = { "城镇住宅用地", "教育用地", "商业用地", "工业用地", "物流仓储用地", "公路用地", "工业绿地" };
|
|
|
|
|
+ for (String type : landTypes) {
|
|
|
|
|
+ LandUseRes landUse = new LandUseRes();
|
|
|
|
|
+ landUse.setLandUseTypeName(type);
|
|
|
|
|
+ // 随机生成面积
|
|
|
|
|
+ landUse.setPlanLandUseArea(Integer.parseInt(String.valueOf(500 + (int) (Math.random() * 500))));
|
|
|
|
|
+ landUse.setCompleteLandUseArea(Integer.parseInt(String.valueOf(300 + (int) (Math.random() * 300))));
|
|
|
|
|
+ landUseStatisticsList.add(landUse);
|
|
|
|
|
+ }
|
|
|
res.setLandUseStatisticsList(landUseStatisticsList);
|
|
res.setLandUseStatisticsList(landUseStatisticsList);
|
|
|
|
|
+
|
|
|
// --------------供应方式----------------------
|
|
// --------------供应方式----------------------
|
|
|
ProjectSupplyRes projectSupply1 = new ProjectSupplyRes();
|
|
ProjectSupplyRes projectSupply1 = new ProjectSupplyRes();
|
|
|
|
|
+ projectSupply1.setGdArea((float) (Math.round((263.12f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
|
|
|
+ projectSupply1.setGdType("征用");
|
|
|
|
|
+ projectSupply1.setGdUnit("亩");
|
|
|
|
|
+
|
|
|
ProjectSupplyRes projectSupply2 = new ProjectSupplyRes();
|
|
ProjectSupplyRes projectSupply2 = new ProjectSupplyRes();
|
|
|
|
|
|
|
|
|
|
+ projectSupply2.setGdArea((float) (Math.round((220.12f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
|
|
|
+ projectSupply2.setGdType("收回");
|
|
|
|
|
+ projectSupply2.setGdUnit("亩");
|
|
|
|
|
+
|
|
|
ProjectSupplyRes projectSupply3 = new ProjectSupplyRes();
|
|
ProjectSupplyRes projectSupply3 = new ProjectSupplyRes();
|
|
|
|
|
+ projectSupply3.setGdArea((float) (Math.round((190.12f + (float) (Math.random() * 100)) * 100) / 100.0));
|
|
|
|
|
+ projectSupply3.setGdType("收购");
|
|
|
|
|
+ projectSupply3.setGdUnit("亩");
|
|
|
|
|
|
|
|
ProjectSupplyRes projectSupply4 = new ProjectSupplyRes();
|
|
ProjectSupplyRes projectSupply4 = new ProjectSupplyRes();
|
|
|
|
|
+ projectSupply4.setGdArea(390.12f);
|
|
|
|
|
+ projectSupply4.setGdType("置换");
|
|
|
|
|
+ projectSupply4.setGdUnit("亩");
|
|
|
|
|
|
|
|
ProjectSupplyRes projectSupply5 = new ProjectSupplyRes();
|
|
ProjectSupplyRes projectSupply5 = new ProjectSupplyRes();
|
|
|
|
|
+ projectSupply5.setGdArea(250.12f);
|
|
|
|
|
+ projectSupply5.setGdType("其它");
|
|
|
|
|
+ projectSupply5.setGdUnit("亩");
|
|
|
|
|
|
|
|
projectSupplyList.addAll(List.of(projectSupply1, projectSupply2, projectSupply3, projectSupply4, projectSupply5));
|
|
projectSupplyList.addAll(List.of(projectSupply1, projectSupply2, projectSupply3, projectSupply4, projectSupply5));
|
|
|
res.setProjectSupplyList(projectSupplyList);
|
|
res.setProjectSupplyList(projectSupplyList);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -313,7 +352,7 @@ public class StorageController extends BaseController {
|
|
|
@GetMapping("/projectList")
|
|
@GetMapping("/projectList")
|
|
|
public R<List<LandSupplyProjectVO>> getProjectList(@RequestParam(required = false) String year, @RequestParam Integer supplyType) {
|
|
public R<List<LandSupplyProjectVO>> getProjectList(@RequestParam(required = false) String year, @RequestParam Integer supplyType) {
|
|
|
try {
|
|
try {
|
|
|
- List<LandSupplyProjectVO> resList = supplyService.projectList(year,supplyType);
|
|
|
|
|
|
|
+ List<LandSupplyProjectVO> resList = storageServiceImpl.projectList(year,supplyType);
|
|
|
return R.ok(resList);
|
|
return R.ok(resList);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|