From 8652e69d17ab0c1a5884c662a9f3f950ddf57948 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期二, 15 七月 2025 16:16:11 +0800
Subject: [PATCH] 优化 和修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/MgtComplaintController.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/MgtComplaintController.java b/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/MgtComplaintController.java
index 20c35f8..40ba19b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/MgtComplaintController.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/api/MgtComplaintController.java
@@ -362,4 +362,17 @@
     }
 
 
+
+    @DeleteMapping("/delete/{id}")
+    @ApiOperation(value = "删除诉求")
+    public R<?> delete(@PathVariable("id") Long id) {
+        SystemUserVo loginUserInfoWest = getLoginUserInfoWest();
+        if (loginUserInfoWest.getSystemRoleId()>2) {
+            return R.fail("无权限");
+        }
+        complaintService.removeById(id);
+        return R.ok();
+    }
+
+
 }

--
Gitblit v1.7.1