|
@@ -25,12 +25,12 @@ import javax.servlet.http.HttpServletResponse;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 珍惜古树Controller
|
|
|
|
|
|
+ * 珍稀古树Controller
|
|
*
|
|
*
|
|
* @author ruoyi
|
|
* @author ruoyi
|
|
* @date 2022-05-04
|
|
* @date 2022-05-04
|
|
*/
|
|
*/
|
|
-@Api(tags = "数据中心林业珍惜古树控制器")
|
|
|
|
|
|
+@Api(tags = "数据中心林业珍稀古树控制器")
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/trees")
|
|
@RequestMapping("/trees")
|
|
public class CenterdataTForestTreesController extends BaseController {
|
|
public class CenterdataTForestTreesController extends BaseController {
|
|
@@ -39,10 +39,10 @@ public class CenterdataTForestTreesController extends BaseController {
|
|
private ICenterdataTForestTreesService centerdataTForestTreesService;
|
|
private ICenterdataTForestTreesService centerdataTForestTreesService;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 查询珍惜古树列表
|
|
|
|
- * 查询珍惜古树列表调用
|
|
|
|
|
|
+ * 查询珍稀古树列表
|
|
|
|
+ * 查询珍稀古树列表调用
|
|
*/
|
|
*/
|
|
- @ApiOperation(value = "数据中心查询珍惜古树列表", notes = "数据中心查询珍惜古树列表")
|
|
|
|
|
|
+ @ApiOperation(value = "数据中心查询珍稀古树列表", notes = "数据中心查询珍稀古树列表")
|
|
@RequiresPermissions("forest:trees:list")
|
|
@RequiresPermissions("forest:trees:list")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
@ApiImplicitParam(name = "treesName", value = "名称", dataType = "String", paramType = "query")
|
|
@ApiImplicitParam(name = "treesName", value = "名称", dataType = "String", paramType = "query")
|
|
@@ -52,7 +52,7 @@ public class CenterdataTForestTreesController extends BaseController {
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "手机端查询珍惜古树列表", notes = "手机端查询珍惜古树列表")
|
|
|
|
|
|
+ @ApiOperation(value = "手机端查询珍稀古树列表", notes = "手机端查询珍稀古树列表")
|
|
@PostMapping("/remoteList")
|
|
@PostMapping("/remoteList")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "treesName", value = "名称", dataType = "String", paramType = "body"),
|
|
@ApiImplicitParam(name = "treesName", value = "名称", dataType = "String", paramType = "body"),
|
|
@@ -65,26 +65,26 @@ public class CenterdataTForestTreesController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 导出珍惜古树列表
|
|
|
|
- * 数据中心珍惜古树列表导出调用
|
|
|
|
|
|
+ * 导出珍稀古树列表
|
|
|
|
+ * 数据中心珍稀古树列表导出调用
|
|
*/
|
|
*/
|
|
- @ApiOperation(value = "数据中心珍惜古树列表导出", notes = "数据中心珍惜古树列表导出")
|
|
|
|
|
|
+ @ApiOperation(value = "数据中心珍稀古树列表导出", notes = "数据中心珍稀古树列表导出")
|
|
@RequiresPermissions("forest:trees:export")
|
|
@RequiresPermissions("forest:trees:export")
|
|
- @Log(title = "珍惜古树", businessType = BusinessType.EXPORT)
|
|
|
|
|
|
+ @Log(title = "珍稀古树", businessType = BusinessType.EXPORT)
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
@ApiImplicitParam(name = "treesName", value = "名称", dataType = "String", paramType = "query")
|
|
@ApiImplicitParam(name = "treesName", value = "名称", dataType = "String", paramType = "query")
|
|
public void export(HttpServletResponse response, @ApiIgnore CenterdataTForestTrees centerdataTForestTrees) {
|
|
public void export(HttpServletResponse response, @ApiIgnore CenterdataTForestTrees centerdataTForestTrees) {
|
|
List<CenterdataTForestTrees> list = centerdataTForestTreesService.selectCenterdataTForestTreesList(centerdataTForestTrees);
|
|
List<CenterdataTForestTrees> list = centerdataTForestTreesService.selectCenterdataTForestTreesList(centerdataTForestTrees);
|
|
ExcelUtil<CenterdataTForestTrees> util = new ExcelUtil<>(CenterdataTForestTrees.class);
|
|
ExcelUtil<CenterdataTForestTrees> util = new ExcelUtil<>(CenterdataTForestTrees.class);
|
|
- util.exportExcel(response, list, "珍惜古树数据");
|
|
|
|
|
|
+ util.exportExcel(response, list, "珍稀古树数据");
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 获取珍惜古树详细信息
|
|
|
|
- * 数据中心珍惜古树详情调用
|
|
|
|
|
|
+ * 获取珍稀古树详细信息
|
|
|
|
+ * 数据中心珍稀古树详情调用
|
|
*/
|
|
*/
|
|
@ApiImplicitParam(name = "id", value = "主键id", required = true, dataType = "String", paramType = "path")
|
|
@ApiImplicitParam(name = "id", value = "主键id", required = true, dataType = "String", paramType = "path")
|
|
- @ApiOperation(value = "数据中心获取珍惜古树详细信息", notes = "数据中心获取珍惜古树详细信息")
|
|
|
|
|
|
+ @ApiOperation(value = "数据中心获取珍稀古树详细信息", notes = "数据中心获取珍稀古树详细信息")
|
|
@RequiresPermissions("forest:trees:query")
|
|
@RequiresPermissions("forest:trees:query")
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
public AjaxResult getInfo(@PathVariable("id") String id) {
|
|
public AjaxResult getInfo(@PathVariable("id") String id) {
|
|
@@ -92,12 +92,12 @@ public class CenterdataTForestTreesController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 新增珍惜古树
|
|
|
|
- * 数据中心珍惜古树新增调用
|
|
|
|
|
|
+ * 新增珍稀古树
|
|
|
|
+ * 数据中心珍稀古树新增调用
|
|
*/
|
|
*/
|
|
- @ApiOperation(value = "数据中心新增珍惜古树", notes = "数据中心新增珍惜古树")
|
|
|
|
|
|
+ @ApiOperation(value = "数据中心新增珍稀古树", notes = "数据中心新增珍稀古树")
|
|
@RequiresPermissions("forest:trees:add")
|
|
@RequiresPermissions("forest:trees:add")
|
|
- @Log(title = "珍惜古树", businessType = BusinessType.INSERT)
|
|
|
|
|
|
+ @Log(title = "珍稀古树", businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
public AjaxResult add(@Validated @RequestBody CenterdataTForestTrees centerdataTForestTrees) {
|
|
public AjaxResult add(@Validated @RequestBody CenterdataTForestTrees centerdataTForestTrees) {
|
|
String tableName = "centerdata_t_forest_trees";
|
|
String tableName = "centerdata_t_forest_trees";
|
|
@@ -111,8 +111,8 @@ public class CenterdataTForestTreesController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 修改珍惜古树
|
|
|
|
- * 数据中心珍惜古树修改调用
|
|
|
|
|
|
+ * 修改珍稀古树
|
|
|
|
+ * 数据中心珍稀古树修改调用
|
|
*/
|
|
*/
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "id", value = "主键id", dataType = "String", paramType = "body", required = true),
|
|
@ApiImplicitParam(name = "id", value = "主键id", dataType = "String", paramType = "body", required = true),
|
|
@@ -124,9 +124,9 @@ public class CenterdataTForestTreesController extends BaseController {
|
|
@ApiImplicitParam(name = "latitude", value = "纬度", dataType = "String", paramType = "body", required = true),
|
|
@ApiImplicitParam(name = "latitude", value = "纬度", dataType = "String", paramType = "body", required = true),
|
|
@ApiImplicitParam(name = "deptId", value = "部门ID", dataType = "Long", paramType = "body", required = true)
|
|
@ApiImplicitParam(name = "deptId", value = "部门ID", dataType = "Long", paramType = "body", required = true)
|
|
})
|
|
})
|
|
- @ApiOperation(value = "数据中心修改珍惜古树", notes = "数据中心修改珍惜古树")
|
|
|
|
|
|
+ @ApiOperation(value = "数据中心修改珍稀古树", notes = "数据中心修改珍稀古树")
|
|
@RequiresPermissions("forest:trees:edit")
|
|
@RequiresPermissions("forest:trees:edit")
|
|
- @Log(title = "珍惜古树", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
+ @Log(title = "珍稀古树", businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
public AjaxResult edit(@ApiIgnore @Validated @RequestBody CenterdataTForestTrees centerdataTForestTrees) {
|
|
public AjaxResult edit(@ApiIgnore @Validated @RequestBody CenterdataTForestTrees centerdataTForestTrees) {
|
|
String tableName = "centerdata_t_forest_trees";
|
|
String tableName = "centerdata_t_forest_trees";
|
|
@@ -140,13 +140,13 @@ public class CenterdataTForestTreesController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 删除珍惜古树
|
|
|
|
- * 数据中心珍惜古树删除调用
|
|
|
|
|
|
+ * 删除珍稀古树
|
|
|
|
+ * 数据中心珍稀古树删除调用
|
|
*/
|
|
*/
|
|
@ApiImplicitParam(name = "ids", value = "主键id数组", required = true, dataType = "String[]", paramType = "path")
|
|
@ApiImplicitParam(name = "ids", value = "主键id数组", required = true, dataType = "String[]", paramType = "path")
|
|
- @ApiOperation(value = "数据中心删除珍惜古树", notes = "数据中心删除珍惜古树")
|
|
|
|
|
|
+ @ApiOperation(value = "数据中心删除珍稀古树", notes = "数据中心删除珍稀古树")
|
|
@RequiresPermissions("forest:trees:remove")
|
|
@RequiresPermissions("forest:trees:remove")
|
|
- @Log(title = "珍惜古树", businessType = BusinessType.DELETE)
|
|
|
|
|
|
+ @Log(title = "珍稀古树", businessType = BusinessType.DELETE)
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
public AjaxResult remove(@PathVariable String[] ids) {
|
|
public AjaxResult remove(@PathVariable String[] ids) {
|
|
int result = centerdataTForestTreesService.deleteCenterdataTForestTreesByIds(ids);
|
|
int result = centerdataTForestTreesService.deleteCenterdataTForestTreesByIds(ids);
|