Sfoglia il codice sorgente

综合回访时间搜索

lihai 6 anni fa
parent
commit
d23be32e42

+ 5 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -35,7 +35,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
35 35
         /// 获取工单列表
36 36
         /// </summary>
37 37
         /// <returns></returns>
38
-        public ActionResult GetList(string code, string cusname, string cusphone,string keywords, string companyname, string province, string city,
38
+        public ActionResult GetList(string code, string cusname, string cusphone, string starttime, string endtime, string keywords, string companyname, string province, string city,
39 39
             string country, string township, string touser, int source=0,int type = 0, int state=-1, int pageindex = 1,int pagesize = 10)
40 40
         {
41 41
            
@@ -51,6 +51,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
51 51
                     sql += $" and F_Source=" + source;
52 52
                 if (!string.IsNullOrWhiteSpace(touser))//参与人
53 53
                     sql += $" and F_DealBy like '%" + touser.Trim() + "%'";
54
+                if (starttime.Trim() != "" && starttime != "undefined")
55
+                    sql += " and datediff(day,F_CreateOn,'" + starttime + "')<=0 ";
56
+                if (endtime.Trim() != "" && endtime != "undefined")
57
+                    sql += " and datediff(day,F_CreateOn,'" + endtime + "')>=0   ";
54 58
                 if (!string.IsNullOrWhiteSpace(keywords))//关键字搜索
55 59
                     sql += $"  and ( F_CusName like '%" + keywords.Trim() + "%'or F_CusPhone like '%" + keywords.Trim() + "%' ) ";
56 60
                 if (!string.IsNullOrWhiteSpace(code))//工单编号