From 6a2a5d307efc0e3b2993fa5837ec3c58424d7df4 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期五, 06 十月 2023 10:44:17 +0800
Subject: [PATCH] 应急预案删除加入部门判断提交
---
ard-work/src/main/java/com/ruoyi/plan/controller/ArdEplanController.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/plan/controller/ArdEplanController.java b/ard-work/src/main/java/com/ruoyi/plan/controller/ArdEplanController.java
index eb9dd3b..fb6bd28 100644
--- a/ard-work/src/main/java/com/ruoyi/plan/controller/ArdEplanController.java
+++ b/ard-work/src/main/java/com/ruoyi/plan/controller/ArdEplanController.java
@@ -242,7 +242,7 @@
ArdEplan result = ardEplanService.selectArdEplanById(ids[0]);
String userId = SecurityUtils.getUserId();
SysUser sysUser = userService.selectUserById(userId);
- if(!result.getDeptId().equals(sysUser.getDeptId())){
+ if(!result.getDeptId().equals(String.valueOf(sysUser.getDeptId()))){
return toAjax(0);//闈炴湰閮ㄩ棬棰勬鏃犳硶鍒犻櫎
}
return toAjax(ardEplanService.deleteArdEplanByIds(ids));
--
Gitblit v1.9.3