From 48c2e5ffb3f9ad3509006e50f3142ea4d0e7f619 Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期三, 16 十月 2024 09:32:16 +0800
Subject: [PATCH] 修改拼接sql逻辑以及返回逻辑

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/controller/admin/DaPointController.java |    6 +++---
 1 files changed, 3 insertions(+), 3 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 24e7fc5..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
@@ -61,7 +61,7 @@
     }
 
     @PreAuthorize("@ss.hasPermission('data:point:create')")
-    @PostMapping("/data:point")
+    @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