Parcourir la Source

调整外呼报表,增加行政村参数

zhengbingbing il y a 7 ans
Parent
commit
63d488f87d

+ 6 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/CallOutReportController.cs

@@ -27,7 +27,7 @@ namespace CallCenterApi.Interface.Controllers.report
27 27
         /// <param name="sdate">开始时间</param>
28 28
         /// <param name="edate">结束时间</param>
29 29
         /// <returns></returns>
30
-        public ActionResult GetReport(string TaskID, string quesid, string countryid, string sdate, string edate)
30
+        public ActionResult GetReport(string TaskID, string quesid, string countryid,string villageid, string sdate, string edate)
31 31
         {
32 32
             #region 新建输出表
33 33
             DataTable dtnew = new DataTable();
@@ -46,6 +46,8 @@ namespace CallCenterApi.Interface.Controllers.report
46 46
             string sqlans = " isnull(F_TaskID,'')='" + TaskID + "' ";
47 47
             if (!string.IsNullOrWhiteSpace(countryid))
48 48
                 sqlans += " and isnull(F_Expand1,'')='" + countryid + "' ";
49
+            if (!string.IsNullOrWhiteSpace(villageid))
50
+                sqlans += " and isnull(F_Expand2,'')='" + villageid + "' ";
49 51
             if (!string.IsNullOrWhiteSpace(sdate))
50 52
                 sqlans += " and DATEDIFF(day,F_OptOn,'"+ sdate.Trim() + "')<=0";
51 53
             if (!string.IsNullOrWhiteSpace(edate))
@@ -100,7 +102,7 @@ namespace CallCenterApi.Interface.Controllers.report
100 102
         }
101 103
 
102 104
         #region 外呼任务报表导出Excel
103
-        public ActionResult GetReportExpt(string TaskID, string quesid, string countryid, string sdate, string edate)
105
+        public ActionResult GetReportExpt(string TaskID, string quesid, string countryid, string villageid, string sdate, string edate)
104 106
         {
105 107
             #region 新建输出表
106 108
             DataTable dtnew = new DataTable();
@@ -119,6 +121,8 @@ namespace CallCenterApi.Interface.Controllers.report
119 121
             string sqlans = " isnull(F_TaskID,'')='" + TaskID + "' ";
120 122
             if (!string.IsNullOrWhiteSpace(countryid))
121 123
                 sqlans += " and isnull(F_Expand1,'')='" + countryid + "' ";
124
+            if (!string.IsNullOrWhiteSpace(villageid))
125
+                sqlans += " and isnull(F_Expand2,'')='" + villageid + "' ";
122 126
             if (!string.IsNullOrWhiteSpace(sdate))
123 127
                 sqlans += " and DATEDIFF(day,F_OptOn,'" + sdate.Trim() + "')<=0";
124 128
             if (!string.IsNullOrWhiteSpace(edate))