From 4be7d863a161b64f8592a789d699e807545e7dc6 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 15 十一月 2024 16:46:12 +0800
Subject: [PATCH] 计划数据

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/controller/admin/IndDataSetController.java |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/controller/admin/IndDataSetController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/controller/admin/IndDataSetController.java
index aa769eb..bd83fbe 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/controller/admin/IndDataSetController.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/controller/admin/IndDataSetController.java
@@ -18,6 +18,8 @@
 
 import javax.validation.Valid;
 
+import java.util.List;
+
 import static com.iailab.framework.common.pojo.CommonResult.success;
 
 /**
@@ -27,14 +29,14 @@
  */
 @Tag(name = "数据平台 - 指标数据集")
 @RestController
-@RequestMapping("/data/ind-data-set")
+@RequestMapping("/data/ind/data-set")
 @Validated
 public class IndDataSetController {
     @Autowired
     private IndDataSetService indDataSetService;
 
     @GetMapping("/page")
-    @Operation(summary = "获取指标分类列表", description = "用于【指标分类】界面")
+    @Operation(summary = "获取指标数据集列表", description = "用于【指标数据集】界面")
     @PreAuthorize("@ss.hasPermission('data:ind-data-set:query')")
     public CommonResult<PageResult<IndDataSetRespVO>> page(IndDataSetPageReqVO reqVO) {
         PageResult<IndDataSetEntity> page = indDataSetService.page(reqVO);
@@ -42,7 +44,7 @@
     }
 
     @PostMapping("/create")
-    @Operation(summary = "创建指标分类")
+    @Operation(summary = "创建指标数据集")
     @PreAuthorize("@ss.hasPermission('data:ind-data-set:create')")
     public CommonResult<Boolean> create(@Valid @RequestBody IndDataSetSaveReqVO createReqVO) {
         indDataSetService.create(createReqVO);
@@ -50,7 +52,7 @@
     }
 
     @PutMapping("/update")
-    @Operation(summary = "修改指标分类")
+    @Operation(summary = "修改指标数据集")
     @PreAuthorize("@ss.hasPermission('data:ind-data-set:update')")
     public CommonResult<Boolean> update(@Valid @RequestBody IndDataSetSaveReqVO updateReqVO) {
         indDataSetService.update(updateReqVO);
@@ -58,8 +60,8 @@
     }
 
     @DeleteMapping("/delete")
-    @Operation(summary = "删除指标分类")
-    @Parameter(name = "id", description = "指标分类编号", required= true, example = "1024")
+    @Operation(summary = "删除指标数据集")
+    @Parameter(name = "id", description = "指标数据集编号", required= true, example = "1024")
     @PreAuthorize("@ss.hasPermission('data:ind-data-set:delete')")
     public CommonResult<Boolean> delete(@RequestParam("id") String id) {
         indDataSetService.delete(id);
@@ -67,10 +69,18 @@
     }
 
     @GetMapping("/get")
-    @Operation(summary = "获取指标分类信息")
-    @PreAuthorize("@ss.hasPermission('system:ind-data-set:query')")
+    @Operation(summary = "获取指标数据集信息")
+    @PreAuthorize("@ss.hasPermission('data:ind-data-set:query')")
     public CommonResult<IndDataSetRespVO> get(String id) {
         IndDataSetEntity entity = indDataSetService.get(id);
         return success(BeanUtils.toBean(entity, IndDataSetRespVO.class));
     }
+
+    @GetMapping("/list-all-simple")
+    @Operation(summary = "获取指标数据集列表", description = "用于【指标数据集】界面")
+    @PreAuthorize("@ss.hasPermission('data:ind-data-set:query')")
+    public CommonResult<List<IndDataSetRespVO>> list(IndDataSetPageReqVO reqVO) {
+        List<IndDataSetEntity> list = indDataSetService.list(reqVO);
+        return success(BeanUtils.toBean(list, IndDataSetRespVO.class));
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3