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 @@ SELECT * FROM template_view - + AND strategy_template_source_system = #{source_system} - + AND strategy_template_create_username = #{create_username} - + AND strategy_template_name LIKE CONCAT('%', #{template_name}, '%') @@ -130,13 +130,13 @@