From c42829d221533c790799c008f9dd297708335c30 Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Mon, 10 Nov 2025 16:54:08 +0800
Subject: [PATCH] 1.增加修改航线分组ID接口。 2.Minio格式优化。 3.分组管理查询列表优化。 4.航线信息增加航线类型字段。 5.修改航线(kmz)功能优化。 6.增加定制删除旧的文件名的文件,并添加新文件名的文件接口。
---
ard-admin/src/main/java/com/ard/web/controller/route/ArdRouteFolderController.java | 57 +++++++++++++++++++++++++++++----------------------------
1 files changed, 29 insertions(+), 28 deletions(-)
diff --git a/ard-admin/src/main/java/com/ard/web/controller/route/ArdRouteFolderController.java b/ard-admin/src/main/java/com/ard/web/controller/route/ArdRouteFolderController.java
index 85b1bd4..f26117c 100644
--- a/ard-admin/src/main/java/com/ard/web/controller/route/ArdRouteFolderController.java
+++ b/ard-admin/src/main/java/com/ard/web/controller/route/ArdRouteFolderController.java
@@ -26,12 +26,12 @@
import com.ard.route.service.IArdRouteFolderService;
/**
- * 文件夹Controller
+ * 分组Controller
*
* @author xia
* @date 2025-10-18
*/
-@Api(tags = "文件夹")
+@Api(tags = "分组管理")
@RestController
@RequestMapping("/route/folder")
public class ArdRouteFolderController extends BaseController {
@@ -40,46 +40,46 @@
private IArdRouteFolderService ardRouteFolderService;
/**
- * 查询文件夹列表
+ * 查询分组列表
*/
- @ApiOperation("查询文件夹列表")
- @PreAuthorize("@ss.hasPermi('route:folder:list')")
+ @ApiOperation("查询分组列表")
+ //@PreAuthorize("@ss.hasPermi('route:folder:list')")
@GetMapping("/list")
public TableDataInfo list(ArdRouteFolder ardRouteFolder) {
- startPage();
+ //startPage();
List<ArdRouteFolder> list = ardRouteFolderService.selectArdRouteFolderList(ardRouteFolder);
return getDataTable(list);
}
/**
- * 导出文件夹列表
+ * 导出分组列表
*/
- @ApiOperation("导出文件夹列表")
- @PreAuthorize("@ss.hasPermi('route:folder:export')")
- @Log(title = "文件夹", businessType = BusinessType.EXPORT)
+ @ApiOperation("导出分组列表")
+ //@PreAuthorize("@ss.hasPermi('route:folder:export')")
+ @Log(title = "分组", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ArdRouteFolder ardRouteFolder) {
List<ArdRouteFolder> list = ardRouteFolderService.selectArdRouteFolderList(ardRouteFolder);
ExcelUtil<ArdRouteFolder> util = new ExcelUtil<ArdRouteFolder>(ArdRouteFolder.class);
- util.exportExcel(response, list, "文件夹数据");
+ util.exportExcel(response, list, "分组数据");
}
/**
- * 获取文件夹详细信息
+ * 获取分组详细信息
*/
- @ApiOperation("获取文件夹详细信息")
- @PreAuthorize("@ss.hasPermi('route:folder:query')")
+ @ApiOperation("获取分组详细信息")
+ //@PreAuthorize("@ss.hasPermi('route:folder:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id) {
return success(ardRouteFolderService.selectArdRouteFolderById(id));
}
/**
- * 新增文件夹
+ * 新增分组
*/
- @ApiOperation("新增文件夹")
- @PreAuthorize("@ss.hasPermi('route:folder:add')")
- @Log(title = "文件夹", businessType = BusinessType.INSERT)
+ @ApiOperation("新增分组")
+ //@PreAuthorize("@ss.hasPermi('route:folder:add')")
+ @Log(title = "分组", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ArdRouteFolder ardRouteFolder) {
ardRouteFolder.setCreateBy(getUsername());
@@ -87,11 +87,11 @@
}
/**
- * 修改文件夹
+ * 修改分组
*/
- @ApiOperation("修改文件夹")
- @PreAuthorize("@ss.hasPermi('route:folder:edit')")
- @Log(title = "文件夹", businessType = BusinessType.UPDATE)
+ @ApiOperation("修改分组")
+ //@PreAuthorize("@ss.hasPermi('route:folder:edit')")
+ @Log(title = "分组", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ArdRouteFolder ardRouteFolder) {
ardRouteFolder.setUpdateBy(getUsername());
@@ -99,22 +99,23 @@
}
/**
- * 删除文件夹
+ * 删除分组
*/
- @ApiOperation("删除文件夹")
- @PreAuthorize("@ss.hasPermi('route:folder:remove')")
- @Log(title = "文件夹", businessType = BusinessType.DELETE)
+ @ApiOperation("删除分组")
+ //@PreAuthorize("@ss.hasPermi('route:folder:remove')")
+ @Log(title = "分组", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids) {
try {
Map<String, Integer> result = ardRouteFolderService.deleteArdRouteFolderByIds(ids);
if (!result.isEmpty()) {
- return AjaxResult.success("删除成功.文件夹删除" + result.get("folder") + "文件删除" + result.get("file"));
+ return AjaxResult.success("删除成功.分组删除" + result.get("folder") + "文件删除" + result.get("file"));
} else {
- return AjaxResult.success("没有删除文件夹信息。");
+ return AjaxResult.success("没有删除分组信息。");
}
} catch(Exception e){
return AjaxResult.error(e.getMessage());
}
}
+
}
--
Gitblit v1.9.3