zhengbingbing лет назад: 7
Родитель
Сommit
ec346e82e1

+ 8 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/PagerAnswerWXController.cs

@@ -25,14 +25,20 @@ namespace CallCenterApi.Interface.Controllers.callout
25 25
         private readonly BLL.T_Call_OutAnswersWX answxBLL = new BLL.T_Call_OutAnswersWX();
26 26
 
27 27
         #region 获取微信提交的问卷列表
28
-        public ActionResult GetWJList(string key, int pagesize = 10, int pageindex = 1)
28
+        public ActionResult GetWJList(string key, string sdate, string edate, int pagesize = 10, int pageindex = 1)
29 29
         {
30 30
             StringBuilder sb = new StringBuilder();
31
+            #region
31 32
             sb.Append(" and F_DeleteFlag=0 ");
32 33
             if (!string.IsNullOrWhiteSpace(key))
33 34
             {
34
-                sb.Append(" and (F_Phone like '%" + key.Trim() + "%' or F_TelPhone like '%" + key.Trim() + "%')");
35
+                sb.Append(" and (F_CusName like '%" + key.Trim() + "%' or F_Phone like '%" + key.Trim() + "%' or F_TelPhone like '%" + key.Trim() + "%')");
35 36
             }
37
+            if (!string.IsNullOrWhiteSpace(sdate))
38
+                sb.Append(" and DATEDIFF(day,F_CreateTime,'" + sdate.Trim() + "')<=0");
39
+            if (!string.IsNullOrWhiteSpace(edate))
40
+                sb.Append(" and DATEDIFF(day,F_CreateTime,'" + edate.Trim() + "')>=0");
41
+            #endregion
36 42
             var recordCount = 0;
37 43
             var dt = BLL.PagerBLL.GetListPager(
38 44
                     "T_Call_OutTelNumWX",