|
|
@@ -200,7 +200,12 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
200
|
200
|
}
|
|
201
|
201
|
//获取坐席数据
|
|
202
|
202
|
DataTable dt = new DataTable();
|
|
203
|
|
- string sql = "SELECT * from T_Sys_UserAccount where F_DeleteFlag=0 order by F_Userid asc";
|
|
|
203
|
+ string sqlUser = "";
|
|
|
204
|
+ if (dpt != null && dpt.Trim() != "")
|
|
|
205
|
+ {
|
|
|
206
|
+ sqlUser += $" and F_DeptId = {dpt} ";
|
|
|
207
|
+ }
|
|
|
208
|
+ string sql = $"SELECT * from T_Sys_UserAccount where F_DeleteFlag=0 {sqlUser} order by F_Userid asc";
|
|
204
|
209
|
dt = DbHelperSQL.Query(sql).Tables[0];
|
|
205
|
210
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
206
|
211
|
{
|
|
|
@@ -210,7 +215,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
210
|
215
|
int sum = 0;
|
|
211
|
216
|
for (int j = 0; j < cateid.Length; j++)
|
|
212
|
217
|
{
|
|
213
|
|
- string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and typeclass=" + cateid[j] + " and CreateUser='" + dt.Rows[i]["F_UserCode"].ToString() + "'" + sqltimeCallRecords;
|
|
|
218
|
+ string str = "select count(*) from T_Wo_WorkOrder where IsDel=0 and typeclass=" + cateid[j] + " and (CreateUser='" + dt.Rows[i]["F_UserCode"].ToString() + "' or LastDealUser = '" + dt.Rows[i]["F_UserCode"].ToString() + "')" + sqltimeCallRecords;
|
|
214
|
219
|
int ecount = int.Parse(DbHelperSQL.GetSingle(str).ToString());
|
|
215
|
220
|
|
|
216
|
221
|
sum += ecount;
|