Przeglądaj źródła

年呼叫数据对比条件错误

lihai 7 lat temu
rodzic
commit
6c9ce928e7

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/YearContrastController.cs

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