|
@@ -1,21 +1,13 @@
|
|
package com.onemap.apply.controller.gdbh;
|
|
package com.onemap.apply.controller.gdbh;
|
|
|
|
|
|
-import com.onemap.apply.domain.gdbh.TGdbhJctb;
|
|
|
|
import com.onemap.apply.domain.gdbh.TGdbhYjjbntServerDTO;
|
|
import com.onemap.apply.domain.gdbh.TGdbhYjjbntServerDTO;
|
|
-import com.onemap.apply.service.gdbh.ITGdbhJctbService;
|
|
|
|
import com.onemap.apply.service.gdbh.ITGdbhYjjbntService;
|
|
import com.onemap.apply.service.gdbh.ITGdbhYjjbntService;
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
-import com.onemap.common.core.utils.poi.ExcelUtil;
|
|
|
|
import com.onemap.common.core.web.controller.BaseController;
|
|
import com.onemap.common.core.web.controller.BaseController;
|
|
import com.onemap.common.core.web.domain.AjaxResult;
|
|
import com.onemap.common.core.web.domain.AjaxResult;
|
|
-import com.onemap.common.core.web.page.TableDataInfo;
|
|
|
|
-import com.onemap.common.log.annotation.Log;
|
|
|
|
-import com.onemap.common.log.enums.BusinessType;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
|
-import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
* 耕地保护-永久基本农田Controller
|
|
* 耕地保护-永久基本农田Controller
|
|
@@ -39,29 +31,30 @@ public class TGdbhYjjbntController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping("/ntzl")
|
|
@GetMapping("/ntzl")
|
|
- public AjaxResult ntzllist(String yaer, String xzqhdm, String dlbm) {
|
|
+ public AjaxResult ntzllist(String year, String xzqhdm, String dlbm) {
|
|
- if (StringUtils.isEmpty(yaer)) {
|
|
+ if (StringUtils.isEmpty(year)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
- return success(itGdbhYjjbntService.ntzllist(yaer, xzqhdm, dlbm));
|
|
+ return success(itGdbhYjjbntService.ntzllist(year, xzqhdm, dlbm));
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping("/ntzlfl")
|
|
@GetMapping("/ntzlfl")
|
|
- public AjaxResult ntzlfl(String yaer, String xzqhdm, String dlbm) {
|
|
+ public AjaxResult ntzlfl(String year, String xzqhdm, String dlbm) {
|
|
- if (StringUtils.isEmpty(yaer)) {
|
|
+ if (StringUtils.isEmpty(year)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
- return success(itGdbhYjjbntService.ntzlfl(yaer, xzqhdm, dlbm));
|
|
+ return success(itGdbhYjjbntService.ntzlfl(year, xzqhdm, dlbm));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
* 变化规律
|
|
* 变化规律
|
|
|
|
+ *
|
|
* @param sourceyaer
|
|
* @param sourceyaer
|
|
* @param targeyaer
|
|
* @param targeyaer
|
|
* @param xzqhdm
|
|
* @param xzqhdm
|
|
@@ -69,24 +62,23 @@ public class TGdbhYjjbntController extends BaseController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/ntzlbhqk")
|
|
@GetMapping("/ntzlbhqk")
|
|
- public AjaxResult ntzlbhqk(String sourceyaer, String targeyaer, String xzqhdm, String dlbm) {
|
|
+ public AjaxResult ntzlbhqk(String sourceyear, String targeyear, String xzqhdm, String dlbm) {
|
|
- if (StringUtils.isEmpty(sourceyaer)) {
|
|
+ if (StringUtils.isEmpty(sourceyear)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
- if (StringUtils.isEmpty(targeyaer)) {
|
|
+ if (StringUtils.isEmpty(targeyear)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
- return success(itGdbhYjjbntService.ntzlbhqk(sourceyaer, targeyaer, xzqhdm, dlbm));
|
|
+ return success(itGdbhYjjbntService.ntzlbhqk(sourceyear, targeyear, xzqhdm, dlbm));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 变化规律
|
|
* 变化规律
|
|
- * @param sourceyaer
|
|
+ *
|
|
- * @param targeyaer
|
|
|
|
* @param xzqhdm
|
|
* @param xzqhdm
|
|
* @param dlbm
|
|
* @param dlbm
|
|
* @return
|
|
* @return
|
|
@@ -96,70 +88,18 @@ public class TGdbhYjjbntController extends BaseController {
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
return error("参数缺失");
|
|
return error("参数缺失");
|
|
}
|
|
}
|
|
- return success(itGdbhYjjbntService.ntzllnbhqk( xzqhdm, dlbm));
|
|
+ return success(itGdbhYjjbntService.ntzllnbhqk(xzqhdm, dlbm));
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
+ @GetMapping("/ntzlqxfl")
|
|
-
|
|
+ public AjaxResult ntzlqxfl(String year, String xzqhdm, String dlbm) {
|
|
-
|
|
+ if (StringUtils.isEmpty(year)) {
|
|
-
|
|
+ return error("参数缺失");
|
|
-
|
|
+ }
|
|
-
|
|
+ if (StringUtils.isEmpty(xzqhdm)) {
|
|
-
|
|
+ return error("参数缺失");
|
|
-
|
|
+ }
|
|
-
|
|
+ return success(itGdbhYjjbntService.ntzlqxfl(year, xzqhdm, dlbm));
|
|
-
|
|
+ }
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
}
|
|
}
|