|
|
@@ -63,7 +63,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
63
|
63
|
string strworkid = HttpUtility.UrlDecode(RequestString.GetQueryString("workid"));
|
|
64
|
64
|
string strusercode = HttpUtility.UrlDecode(RequestString.GetQueryString("usercode"));
|
|
65
|
65
|
string strddusercode = HttpUtility.UrlDecode(RequestString.GetQueryString("ddusercode"));//调度员
|
|
66
|
|
- //调度员
|
|
|
66
|
+ string ddstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("ddstarttime"));
|
|
|
67
|
+ string ddstrendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("ddstrendtime"));
|
|
|
68
|
+
|
|
|
69
|
+ string supervisor = HttpUtility.UrlDecode(RequestString.GetQueryString("supervisor"));//督办人员
|
|
67
|
70
|
int isproresult = RequestString.GetInt("isproresult", 0);
|
|
68
|
71
|
int source = RequestString.GetInt("source", 0);
|
|
69
|
72
|
int keyid = RequestString.GetInt("keyid", 0);
|
|
|
@@ -181,7 +184,25 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
181
|
184
|
{
|
|
182
|
185
|
sql += " and F_SplitUser = '" + splituser + "' ";
|
|
183
|
186
|
}
|
|
184
|
|
-
|
|
|
187
|
+ if (ddstarttime.Trim() != "" && ddstarttime != "undefined")
|
|
|
188
|
+ {
|
|
|
189
|
+ if (ddstrendtime.Trim() != "" && ddstrendtime != "undefined")
|
|
|
190
|
+ {
|
|
|
191
|
+ sql += " and F_AssignTime between '" + ddstarttime +
|
|
|
192
|
+ "' AND '" + ddstrendtime + "'";
|
|
|
193
|
+ }
|
|
|
194
|
+ else
|
|
|
195
|
+ {
|
|
|
196
|
+ sql += " and F_AssignTime>='" + ddstarttime + "' ";
|
|
|
197
|
+ }
|
|
|
198
|
+ }
|
|
|
199
|
+ else
|
|
|
200
|
+ {
|
|
|
201
|
+ if (ddstrendtime.Trim() != "" && ddstrendtime != "undefined")
|
|
|
202
|
+ {
|
|
|
203
|
+ sql += " and F_AssignTime<='" + ddstrendtime + "' ";
|
|
|
204
|
+ }
|
|
|
205
|
+ }
|
|
185
|
206
|
if (islike > 0)
|
|
186
|
207
|
{
|
|
187
|
208
|
if (strtel.Trim() != "" && strtel != "undefined")
|
|
|
@@ -382,7 +403,35 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
382
|
403
|
}
|
|
383
|
404
|
}
|
|
384
|
405
|
}
|
|
|
406
|
+ if (supervisor.Trim() != "" && supervisor != "undefined")
|
|
|
407
|
+ {//督办人员
|
|
|
408
|
+ var supervisorusercode = supervisor.Trim().Split(',');
|
|
|
409
|
+ var newusercode = "";
|
|
|
410
|
+ foreach (var item in supervisorusercode)
|
|
|
411
|
+ {
|
|
|
412
|
+ if (!string.IsNullOrWhiteSpace(item.Trim()))
|
|
|
413
|
+ newusercode += "'" + item + "',";
|
|
|
414
|
+ }
|
|
|
415
|
+ newusercode = newusercode.Trim(',');
|
|
385
|
416
|
|
|
|
417
|
+ if (supervisorusercode.Length > 1)
|
|
|
418
|
+ {
|
|
|
419
|
+ if (newusercode.Trim() != "" && newusercode != "undefined")
|
|
|
420
|
+ {
|
|
|
421
|
+ sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_RemindRecord " +
|
|
|
422
|
+ "where F_State != 2 and F_IsDelete = 0 and F_Type = 1 and Supervisor in ("+ newusercode + ")) ";
|
|
|
423
|
+ }
|
|
|
424
|
+ }
|
|
|
425
|
+ else
|
|
|
426
|
+ {
|
|
|
427
|
+ if (newusercode.Trim() != "" && newusercode != "undefined")
|
|
|
428
|
+ {
|
|
|
429
|
+ sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_RemindRecord " +
|
|
|
430
|
+ "where F_State != 2 and F_IsDelete = 0 and F_Type = 1 and Supervisor = '" + newusercode + "') ";
|
|
|
431
|
+ }
|
|
|
432
|
+ }
|
|
|
433
|
+ }
|
|
|
434
|
+
|
|
386
|
435
|
if (source != 0)
|
|
387
|
436
|
{
|
|
388
|
437
|
sql += " and F_InfoSource = '" + source + "' ";
|