浏览代码

Merge branch 'master' of http://192.168.1.222:3000/zhoufan/RMYY_CallCenter_Api

weieryang 3 年之前
父节点
当前提交
b2e9e8325b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      RMYY_CallCenter_Api/Common/Common.cs

+ 2 - 2
RMYY_CallCenter_Api/Common/Common.cs

@@ -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
         }