Bladeren bron

工单查询修改

mengjie 5 jaren geleden
bovenliggende
commit
ed9b2db45b

+ 10 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -41,6 +41,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
41 41
                 string strcode = HttpUtility.UrlDecode(RequestString.GetQueryString("code"));
42 42
                 string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
43 43
                 string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
44
+                string strinfotype = HttpUtility.UrlDecode(RequestString.GetQueryString("infotype"));
44 45
 
45 46
                 string strpageindex = RequestString.GetQueryString("page");
46 47
                 int pageindex = 1;
@@ -89,6 +90,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
89 90
                 {
90 91
                     sql += " and datediff(day,CreateTime,'" + strendtime + "')>=0   ";
91 92
                 }
93
+                if (strinfotype.Trim() != "" && strinfotype != "undefined")
94
+                {
95
+                    sql += " and InfoType = '" + strinfotype.Trim() + "' ";
96
+                }
92 97
                 #endregion
93 98
                 if (strpageindex.Trim() != "")
94 99
                 {
@@ -153,6 +158,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
153 158
                         string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
154 159
                         string strisreward = HttpUtility.UrlDecode(RequestString.GetQueryString("isreward"));
155 160
                         string state = HttpUtility.UrlDecode(RequestString.GetQueryString("state"));
161
+                        string strinfotype = HttpUtility.UrlDecode(RequestString.GetQueryString("infotype"));
156 162
                         string strpageindex = RequestString.GetQueryString("page");
157 163
                         int pageindex = 1;
158 164
                         string strpagesize = RequestString.GetQueryString("pagesize");
@@ -236,6 +242,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
236 242
                         {
237 243
                             sql += " and ISReward=" + strisreward.Trim();
238 244
                         }
245
+                        if (strinfotype.Trim() != "" && strinfotype != "undefined")
246
+                        {
247
+                            sql += " and InfoType = '" + strinfotype.Trim() + "' ";
248
+                        }
239 249
                         #endregion
240 250
                         if (strpageindex.Trim() != "")
241 251
                         {