ソースを参照

修改来电弹屏历史记录接口

machenyang 8 年 前
コミット
f73a4b830e
共有1 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 4 4
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -230,7 +230,7 @@ namespace CallCenterApi.Interface.Controllers.tel
230 230
                         string sql = "";
231 231
                         string sqlcount = "";
232 232
                         DataTable dt = new DataTable();
233
-
233
+                        //来电号码
234 234
                         string strtel = HttpUtility.UrlDecode(RequestString.GetQueryString("tel"));
235 235
                         string strcalltype = HttpUtility.UrlDecode(RequestString.GetQueryString("calltype"));
236 236
                         string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
@@ -240,9 +240,9 @@ namespace CallCenterApi.Interface.Controllers.tel
240 240
                         int pageindex = 1;
241 241
                         string strpagesize = RequestString.GetQueryString("pagesize");
242 242
                         int pagesize = 10;
243
-
244
-
245
-                        sql += " and CreateUserID = '" + userId + "'";
243
+                        //除管理员外,各坐席只能看到自己的
244
+                        if (ua.F_RoleId != 17)
245
+                            sql += " and CreateUserID = '" + userId + "'";
246 246
 
247 247
                         if (strcalltype.Trim() != "" && strcalltype != "undefined")
248 248
                         {