|
@@ -120,7 +120,7 @@ public class UserService {
|
120
|
120
|
user.put("menu",menuService.getRoleMenus(strRoles,appid));
|
121
|
121
|
|
122
|
122
|
|
123
|
|
- //权限
|
|
123
|
+ // 后台判断权限
|
124
|
124
|
strSQL = "SELECT a.*,b.id m_id\n" +
|
125
|
125
|
"FROM k_role_priv t,k_module_priv z,k_module_priv_detail a,k_module b\n" +
|
126
|
126
|
"WHERE t.r_id in({0}) and t.m_code = z.m_code and t.p_code = z.code\n" +
|
|
@@ -134,6 +134,7 @@ public class UserService {
|
134
|
134
|
user.put("privs",privs);
|
135
|
135
|
|
136
|
136
|
|
|
137
|
+ // 用于在前端判断权限
|
137
|
138
|
strSQL = "SELECT z.*\n" +
|
138
|
139
|
"FROM k_role_priv t,k_module_priv z\n" +
|
139
|
140
|
"WHERE t.r_id in({0}) and t.p_code = z.code";
|