|
|
@@ -15,13 +15,13 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
15
|
15
|
/// 获取坐席列表
|
|
16
|
16
|
/// </summary>
|
|
17
|
17
|
/// <returns></returns>
|
|
18
|
|
- public ActionResult GetList(string username, string deptId = "")
|
|
|
18
|
+ public ActionResult GetList(string username, string deptid = "")
|
|
19
|
19
|
{
|
|
20
|
20
|
ActionResult res = NoToken("未知错误,请重新登录");
|
|
21
|
21
|
if (Request.IsAuthenticated)
|
|
22
|
22
|
{
|
|
23
|
23
|
DataTable dt = new DataTable();
|
|
24
|
|
- int deptid = CurrentUser.UserData.F_DeptId;
|
|
|
24
|
+ int deptId = CurrentUser.UserData.F_DeptId;
|
|
25
|
25
|
int roleid = CurrentUser.UserData.F_RoleId;
|
|
26
|
26
|
var deptCode = CurrentUser.UserData.F_UserCode;
|
|
27
|
27
|
BLL.T_Sys_UserAccount bll = new BLL.T_Sys_UserAccount();
|
|
|
@@ -41,14 +41,14 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
41
|
41
|
//各分公司
|
|
42
|
42
|
if (deptCode.Replace("|0|1|", "").Length > 0)
|
|
43
|
43
|
{
|
|
44
|
|
- sql += " and F_DeptId=" + deptid;
|
|
|
44
|
+ sql += " and F_DeptId=" + deptId;
|
|
45
|
45
|
}
|
|
46
|
46
|
}
|
|
47
|
47
|
}
|
|
48
|
48
|
|
|
49
|
49
|
|
|
50
|
50
|
|
|
51
|
|
- if (!string.IsNullOrWhiteSpace(deptId))
|
|
|
51
|
+ if (!string.IsNullOrWhiteSpace(deptid))
|
|
52
|
52
|
{
|
|
53
|
53
|
sql += " and F_DeptId=" + deptid;
|
|
54
|
54
|
}
|