@@ -163,7 +163,7 @@ namespace CallCenterApi.Interface.Controllers.report
//2018-07-06 lihai 部门搜索条件
if (!string.IsNullOrEmpty(dpt))
{
- sqltimeCallRecords += " and AgentID='" + dpt + "' ";
+ sqltimeCallRecords += $" and AgentID IN (SELECT F_UserCode FROM T_Sys_UserAccount where f_seatFlag=1 and F_WorkNumber!='' and F_DeptId={dpt}) ";
}
if (strtime != "")