zhoufan лет назад: 7
Родитель
Сommit
15ea3ada73

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -104,9 +104,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
104 104
                 //来源
105 105
                 int source = RequestString.GetInt("source", 0);
106 106
                 //状态
107
-                int state = RequestString.GetInt("state", 0);
107
+                int state = RequestString.GetInt("state", -1);
108 108
                 //处理状态
109
-                int dealstate = RequestString.GetInt("dealstate", 0);
109
+                int dealstate = RequestString.GetInt("dealstate", -1);
110 110
 
111 111
                 string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
112 112
                 string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
@@ -136,11 +136,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
136 136
                 {
137 137
                     sql += " and F_Source = '" + source + "' ";
138 138
                 }
139
-                if (state != 0)
139
+                if (state != -1)
140 140
                 {
141 141
                     sql += " and F_State = '" + state + "' ";
142 142
                 }
143
-                if (dealstate != 0)
143
+                if (dealstate != -1)
144 144
                 {
145 145
                     sql += " and isnull(F_DealState,0) = '" + dealstate + "' ";
146 146
                 }