From 2070c06b8cc7b370c3a149669017f4f183f0f172 Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期四, 26 九月 2024 11:15:31 +0800
Subject: [PATCH] 测点列表接口修改

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java
index a0fecc4..53a5e34 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java
@@ -40,9 +40,9 @@
 
     @PreAuthorize("@ss.hasPermission('data:point:query')")
     @GetMapping("page")
-    public CommonResult<PageResult<DaPointRespVO>> page(@Valid DaPointPageReqVO reqVO){
-        PageResult<DaPointEntity> page = daPointService.queryPage(reqVO);
-        return success(BeanUtils.toBean(page, DaPointRespVO.class));
+    public CommonResult<PageResult<DaPointDTO>> page(@Valid DaPointPageReqVO reqVO){
+        PageResult<DaPointDTO> page = daPointService.queryPage(reqVO);
+        return success(page);
     }
 
     @PreAuthorize("@ss.hasPermission('data:point:query')")
@@ -61,7 +61,7 @@
     }
 
     @PreAuthorize("@ss.hasPermission('data:point:create')")
-    @PostMapping("/add")
+    @PostMapping("create")
     public CommonResult<Boolean> create(@RequestBody DaPointDTO daPointDTO){
         String id = UUID.randomUUID().toString();
         daPointDTO.setId(id);
@@ -78,8 +78,8 @@
 
     @PreAuthorize("@ss.hasPermission('data:point:delete')")
     @DeleteMapping("/delete")
-    public CommonResult<Boolean> delete(String[] ids) {
-        daPointService.delete(ids);
+    public CommonResult<Boolean> delete(String id) {
+        daPointService.delete(new String[]{id});
         return success(true);
     }
 

--
Gitblit v1.9.3