瀏覽代碼

修改bug

zhoufan 7 年之前
父節點
當前提交
15ea3ada73

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

104
                 //来源
104
                 //来源
105
                 int source = RequestString.GetInt("source", 0);
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
                 string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
111
                 string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
112
                 string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
112
                 string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
136
                 {
136
                 {
137
                     sql += " and F_Source = '" + source + "' ";
137
                     sql += " and F_Source = '" + source + "' ";
138
                 }
138
                 }
139
-                if (state != 0)
139
+                if (state != -1)
140
                 {
140
                 {
141
                     sql += " and F_State = '" + state + "' ";
141
                     sql += " and F_State = '" + state + "' ";
142
                 }
142
                 }
143
-                if (dealstate != 0)
143
+                if (dealstate != -1)
144
                 {
144
                 {
145
                     sql += " and isnull(F_DealState,0) = '" + dealstate + "' ";
145
                     sql += " and isnull(F_DealState,0) = '" + dealstate + "' ";
146
                 }
146
                 }