|
|
@@ -247,7 +247,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
247
|
247
|
|
|
248
|
248
|
}
|
|
249
|
249
|
#region 数据查询--获取排名
|
|
250
|
|
- public ActionResult GetRankExpt(string sdate, string edate)
|
|
|
250
|
+ public ActionResult GetRankExpt(string sdate, string edate,string taskid)
|
|
251
|
251
|
{
|
|
252
|
252
|
if (string.IsNullOrWhiteSpace(sdate))
|
|
253
|
253
|
{
|
|
|
@@ -257,6 +257,12 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
257
|
257
|
{
|
|
258
|
258
|
edate = DateTime.Now.ToString("yyyy-MM-dd");
|
|
259
|
259
|
}
|
|
|
260
|
+
|
|
|
261
|
+ string strand = "";
|
|
|
262
|
+ if (!string.IsNullOrWhiteSpace(taskid))
|
|
|
263
|
+ {
|
|
|
264
|
+ strand = "and F_TaskId='" + taskid + "'";
|
|
|
265
|
+ }
|
|
260
|
266
|
DataTable dtnew = new DataTable();
|
|
261
|
267
|
dtnew.Columns.Add("paiming", Type.GetType("System.String"));
|
|
262
|
268
|
dtnew.Columns.Add("xiangzhen", Type.GetType("System.String"));
|
|
|
@@ -271,7 +277,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
271
|
277
|
DataRow dr = dtnew.NewRow();
|
|
272
|
278
|
dr["xiangzhen"] = itemconf.F_Name;
|
|
273
|
279
|
//根据乡镇获取总数
|
|
274
|
|
- int totalnum = otnBLL.GetRecordCount(" DATEDIFF(day,ExpandDatField1,'" + sdate + "')<=0 and DATEDIFF(day,ExpandDatField1,'" + edate + "')>=0 and ExpandIntField1='" + itemconf.F_DictionaryValueId + "' ");
|
|
|
280
|
+ int totalnum = otnBLL.GetRecordCount(" DATEDIFF(day,ExpandDatField1,'" + sdate + "')<=0 and DATEDIFF(day,ExpandDatField1,'" + edate + "')>=0 and ExpandIntField1='" + itemconf.F_DictionaryValueId + "' "+ strand);
|
|
275
|
281
|
//int totalnum = ansBLL.GetRecordCount(" DATEDIFF(day,F_OptOn,'" + sdate + "')<=0 and DATEDIFF(day,F_OptOn,'" + edate + "')>=0 and F_Answer='" + itemconf.F_Name + "' ");
|
|
276
|
282
|
|
|
277
|
283
|
leiji += totalnum;
|