Преглед на файлове

Merge branch 'master' of http://101.36.160.140:21044/csc/csc-szls-message

shengyang000 преди 3 години
родител
ревизия
f1ab22c31f

+ 4 - 1
src/main/java/com/unissoft/config/MySecurityMetadataSource.java

@@ -51,7 +51,10 @@ public class MySecurityMetadataSource implements FilterInvocationSecurityMetadat
51 51
                     configAttributes2.add(securityConfig);
52 52
                     linkedHashMap.put(urlPattern1, configAttributes2);
53 53
                 } else {
54
-                    linkedHashMap.get(urlPattern1).add(securityConfig);
54
+                    Collection<ConfigAttribute> configAttributes = linkedHashMap.get(urlPattern1);
55
+                    if(!configAttributes.contains(securityConfig)){
56
+                        configAttributes.add(securityConfig);
57
+                    }
55 58
                 }
56 59
             }
57 60
         }

+ 2 - 1
src/main/java/com/unissoft/mapper/SysResourceRoleMapper.xml

@@ -32,8 +32,9 @@ FROM
32 32
 	sys_resource t1
33 33
 LEFT JOIN project t2 ON t1.`se_project_id` = t2.`id`
34 34
 LEFT JOIN sys_resource_role t3 ON t1.`se_id` = t3.`resource_id`
35
+LEFT JOIN sys_role r ON t3.role_id = r.r_id
35 36
 WHERE
36 37
 	t2.`code` = #{projectCode}
37
-AND t1.se_button != '' AND t1.se_button IS NOT NULL
38
+AND t1.se_button != '' AND t1.se_button IS NOT NULL AND t1.se_button != '/'
38 39
     </select>
39 40
 </mapper>