@@ -66,7 +66,7 @@ namespace CallCenterApi.Interface.Controllers.tel
{
sql += " and UserCode='" + usercode + "'";
}
- if (dept != null && dept.Trim() != "")
+ if (!string.IsNullOrWhiteSpace(dept) && Convert.ToInt32(dept) >= 0)
sql += " and UserCode in (select F_UserCode from T_Sys_UserAccount where F_DeptId=" + dept.Trim() + ")";