|
@@ -1,21 +1,13 @@
|
|
|
package com.onemap.apply.controller.gdbh;
|
|
|
|
|
|
-import com.onemap.apply.domain.gdbh.TGdbhJctb;
|
|
|
import com.onemap.apply.domain.gdbh.TGdbhYjjbntServerDTO;
|
|
|
-import com.onemap.apply.service.gdbh.ITGdbhJctbService;
|
|
|
import com.onemap.apply.service.gdbh.ITGdbhYjjbntService;
|
|
|
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.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.web.bind.annotation.*;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 耕地保护-永久基本农田Controller
|
|
@@ -39,29 +31,30 @@ public class TGdbhYjjbntController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/ntzl")
|
|
|
- public AjaxResult ntzllist(String yaer, String xzqhdm, String dlbm) {
|
|
|
- if (StringUtils.isEmpty(yaer)) {
|
|
|
+ public AjaxResult ntzllist(String year, String xzqhdm, String dlbm) {
|
|
|
+ if (StringUtils.isEmpty(year)) {
|
|
|
return error("参数缺失");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
|
return error("参数缺失");
|
|
|
}
|
|
|
- return success(itGdbhYjjbntService.ntzllist(yaer, xzqhdm, dlbm));
|
|
|
+ return success(itGdbhYjjbntService.ntzllist(year, xzqhdm, dlbm));
|
|
|
}
|
|
|
|
|
|
@GetMapping("/ntzlfl")
|
|
|
- public AjaxResult ntzlfl(String yaer, String xzqhdm, String dlbm) {
|
|
|
- if (StringUtils.isEmpty(yaer)) {
|
|
|
+ public AjaxResult ntzlfl(String year, String xzqhdm, String dlbm) {
|
|
|
+ if (StringUtils.isEmpty(year)) {
|
|
|
return error("参数缺失");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
|
return error("参数缺失");
|
|
|
}
|
|
|
- return success(itGdbhYjjbntService.ntzlfl(yaer, xzqhdm, dlbm));
|
|
|
+ return success(itGdbhYjjbntService.ntzlfl(year, xzqhdm, dlbm));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 变化规律
|
|
|
+ *
|
|
|
* @param sourceyaer
|
|
|
* @param targeyaer
|
|
|
* @param xzqhdm
|
|
@@ -69,24 +62,23 @@ public class TGdbhYjjbntController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/ntzlbhqk")
|
|
|
- public AjaxResult ntzlbhqk(String sourceyaer, String targeyaer, String xzqhdm, String dlbm) {
|
|
|
- if (StringUtils.isEmpty(sourceyaer)) {
|
|
|
+ public AjaxResult ntzlbhqk(String sourceyear, String targeyear, String xzqhdm, String dlbm) {
|
|
|
+ if (StringUtils.isEmpty(sourceyear)) {
|
|
|
return error("参数缺失");
|
|
|
}
|
|
|
- if (StringUtils.isEmpty(targeyaer)) {
|
|
|
+ if (StringUtils.isEmpty(targeyear)) {
|
|
|
return error("参数缺失");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
|
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 dlbm
|
|
|
* @return
|
|
@@ -96,70 +88,18 @@ public class TGdbhYjjbntController extends BaseController {
|
|
|
if (StringUtils.isEmpty(xzqhdm)) {
|
|
|
return error("参数缺失");
|
|
|
}
|
|
|
- return success(itGdbhYjjbntService.ntzllnbhqk( xzqhdm, dlbm));
|
|
|
+ return success(itGdbhYjjbntService.ntzllnbhqk(xzqhdm, dlbm));
|
|
|
}
|
|
|
|
|
|
-// /**
|
|
|
-// * 导出耕地保护-检测图标数据详情表列表
|
|
|
-// */
|
|
|
-// @Log(title = "耕地保护-检测图标数据详情表", businessType = BusinessType.EXPORT)
|
|
|
-// @PostMapping("/export")
|
|
|
-// public void export(HttpServletResponse response, TGdbhJctb tGdbhJctb) {
|
|
|
-// List<TGdbhJctb> list = tGdbhJctbService.selectTGdbhJctbList(tGdbhJctb);
|
|
|
-// ExcelUtil<TGdbhJctb> util = new ExcelUtil<TGdbhJctb>(TGdbhJctb.class);
|
|
|
-// util.exportExcel(response, list, "耕地保护-检测图标数据详情表数据");
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 获取耕地保护-检测图标数据详情表详细信息
|
|
|
-// */
|
|
|
-// @GetMapping(value = "/{id}")
|
|
|
-// public AjaxResult getInfo(@PathVariable("id") String id) {
|
|
|
-// return success(tGdbhJctbService.selectTGdbhJctbById(id));
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 新增耕地保护-检测图标数据详情表
|
|
|
-// */
|
|
|
-// @Log(title = "耕地保护-检测图标数据详情表", businessType = BusinessType.INSERT)
|
|
|
-// @PostMapping
|
|
|
-// public AjaxResult add(@RequestBody TGdbhJctb tGdbhJctb) {
|
|
|
-// return toAjax(tGdbhJctbService.insertTGdbhJctb(tGdbhJctb));
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 修改耕地保护-检测图标数据详情表
|
|
|
-// */
|
|
|
-// @Log(title = "耕地保护-检测图标数据详情表", businessType = BusinessType.UPDATE)
|
|
|
-// @PutMapping
|
|
|
-// public AjaxResult edit(@RequestBody TGdbhJctb tGdbhJctb) {
|
|
|
-// return toAjax(tGdbhJctbService.updateTGdbhJctb(tGdbhJctb));
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 删除耕地保护-检测图标数据详情表
|
|
|
-// */
|
|
|
-// @Log(title = "耕地保护-检测图标数据详情表", businessType = BusinessType.DELETE)
|
|
|
-// @DeleteMapping("/{ids}")
|
|
|
-// public AjaxResult remove(@PathVariable String[] ids) {
|
|
|
-// return toAjax(tGdbhJctbService.deleteTGdbhJctbByIds(ids));
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 新增耕地保护-检测图标数据入库
|
|
|
-// */
|
|
|
-// @Log(title = "耕地保护-检测图标数据入库", businessType = BusinessType.INSERT)
|
|
|
-// @PostMapping("/store")
|
|
|
-// public AjaxResult addStore(String uploadShpId) {
|
|
|
-// tGdbhJctbService.handleUploadShpGdbhJctb(uploadShpId);
|
|
|
-// return toAjax(1);
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// @GetMapping("/date/list")
|
|
|
-// public AjaxResult QueryDateList(Integer yearNumber) {
|
|
|
-// return success(tGdbhJctbService.QueryDateList(yearNumber));
|
|
|
-// }
|
|
|
+ @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));
|
|
|
+ }
|
|
|
|
|
|
}
|