From 986366fb72d2ff7e8bf2f85a52ce842ba68a3edb Mon Sep 17 00:00:00 2001
From: PushM <584406942@qq.com>
Date: Thu, 9 May 2024 15:40:33 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=88=86=E9=A1=B5=E6=9F=A5=E8=AF=A2?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=B8=BA?=
=?UTF-8?q?''=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=9A=84=E5=88=A4?=
=?UTF-8?q?=E6=96=AD=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
(cherry picked from commit 2f6f99f8200b8cd1157743ff3d9b66b3fa7d0e44)
---
.../configuration/entity/user/UserFull.java | 7 +++++
.../resources/mappers/ProtectObjectMapper.xml | 8 ++---
src/main/resources/mappers/TaskMapper.xml | 30 +++++++++----------
src/main/resources/mappers/TemplateMapper.xml | 12 ++++----
.../resources/mappers/WhiteListMapper.xml | 12 ++++----
5 files changed, 37 insertions(+), 32 deletions(-)
diff --git a/src/main/java/com/realtime/protection/configuration/entity/user/UserFull.java b/src/main/java/com/realtime/protection/configuration/entity/user/UserFull.java
index dc5fd4b..77c20e0 100644
--- a/src/main/java/com/realtime/protection/configuration/entity/user/UserFull.java
+++ b/src/main/java/com/realtime/protection/configuration/entity/user/UserFull.java
@@ -28,6 +28,13 @@ public class UserFull {
return "";
}
+ public String getOrgName() {
+ if (orgs.size() > 0) {
+ return orgs.get(0).orgName;
+ }
+ return "";
+ }
+
public String getRoleKey() {
if (roles.size() > 0) {
return roles.get(0).roleKey;
diff --git a/src/main/resources/mappers/ProtectObjectMapper.xml b/src/main/resources/mappers/ProtectObjectMapper.xml
index e13a089..a5abd44 100644
--- a/src/main/resources/mappers/ProtectObjectMapper.xml
+++ b/src/main/resources/mappers/ProtectObjectMapper.xml
@@ -104,12 +104,12 @@
@@ -338,7 +336,7 @@