Explorar el Código

修改城市和省份查询条件

mengjie %!s(int64=6) %!d(string=hace) años
padre
commit
46fdfe32b6

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

179
                 }
179
                 }
180
                 if (strprov.Trim() != "" && strprov.Trim() != "undefined")
180
                 if (strprov.Trim() != "" && strprov.Trim() != "undefined")
181
                 {
181
                 {
182
-                    sql += " and F_Province = '" + strprov.Trim() + "' ";
182
+                    //sql += " and F_Province = '" + strprov.Trim() + "' ";
183
+                    sql += " and F_Province like '%" + strprov + "%' ";
183
                 }
184
                 }
184
                 if (strcity.Trim() != "" && strcity.Trim() != "undefined")
185
                 if (strcity.Trim() != "" && strcity.Trim() != "undefined")
185
                 {
186
                 {
186
-                    sql += " and F_City = '" + strcity.Trim() + "' ";
187
+                    //sql += " and F_City = '" + strcity.Trim() + "' ";
188
+                    sql += " and F_City like '%" + strcity + "%' ";
187
                 }
189
                 }
188
 
190
 
189
                 if (strstarttime.Trim() != "" && strstarttime != "undefined")
191
                 if (strstarttime.Trim() != "" && strstarttime != "undefined")