|
|
@@ -65,9 +65,9 @@ namespace RMYY_CallCenter_Api
|
|
65
|
65
|
}
|
|
66
|
66
|
else
|
|
67
|
67
|
{
|
|
68
|
|
- var dt = DB.DbHelperSQL.Query("select a.F_MenuId as F_MenuId from T_Sys_RoleMenu as a join T_Sys_Menu as b on b.F_MenuId = a.F_MenuId where b.F_Type = 3 and b.F_State = 1 and F_RoleId = 1").Tables[0];
|
|
|
68
|
+ var dt = DB.DbHelperSQL.Query("select a.F_MenuId as F_MenuId from T_Sys_RoleMenu as a join T_Sys_Menu as b on b.F_MenuId = a.F_MenuId where b.F_Type = 3 and b.F_State = 1 and F_RoleId = '"+roleId+"'").Tables[0];
|
|
69
|
69
|
var actions1 = (from DataRow dr in dt.Rows select dr["F_MenuId"].ToString().ToLower()).ToList();
|
|
70
|
|
- CacheHelper.Insert("RoleButtons_" + roleId, actions1);
|
|
|
70
|
+ CacheHelper.Insert("RoleButtons_" + roleId, actions1);
|
|
71
|
71
|
return actions1;
|
|
72
|
72
|
}
|
|
73
|
73
|
}
|