|
@@ -3,10 +3,12 @@ package com.sooka.sponest.data.commandcenter.controller;
|
|
|
import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
|
|
+import com.ruoyi.common.security.utils.DictUtils;
|
|
|
import com.sooka.sponest.data.commandcenter.domian.CommandCenterBO;
|
|
|
import com.sooka.sponest.data.commandcenter.domian.ProjectBody;
|
|
|
import com.sooka.sponest.data.commandcenter.service.ICommandCenterService;
|
|
|
import com.sooka.sponest.data.digitalagriculture.domain.bo.AgricultureViewBO;
|
|
|
+import com.sooka.sponest.data.generalbusiness.domain.CenterdataTForestImportarea;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
@@ -150,6 +152,25 @@ public class CommandCenterController extends BaseController {
|
|
|
return AjaxResult.success(commandCenterService.getImportAreaList(commandCenterBO));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 重点区域
|
|
|
+ * @param CenterdataTForestImportarea
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "重点区域", notes = "重点区域")
|
|
|
+ @GetMapping("/getImportAreaListByParams")
|
|
|
+ public AjaxResult getImportAreaListByParams(CenterdataTForestImportarea importarea) {
|
|
|
+ startPage();
|
|
|
+ List<CenterdataTForestImportarea> result = commandCenterService.getImportAreaListByParams(importarea);
|
|
|
+ Map<String, Object> areaTypeList = DictUtils.getDictCacheToMap("area_type");
|
|
|
+ Map<String, Object> projectLevelLists = DictUtils.getDictCacheToMap("centerdata_project_level");
|
|
|
+ for (CenterdataTForestImportarea hashMap : result) {
|
|
|
+ hashMap.setProjectTypeLabel(String.valueOf(areaTypeList.get(hashMap.getProjectType())));
|
|
|
+ hashMap.setProjectLevelLabel(String.valueOf(projectLevelLists.get(hashMap.getProjectLevel())));
|
|
|
+ }
|
|
|
+ return AjaxResult.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "重点区域", notes = "重点区域")
|
|
|
@GetMapping("/getImportAreaListOne")
|
|
|
@ApiImplicitParams(value = {
|