zhengbingbing 6 anni fa
parent
commit
6a2f277fc3

+ 5 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WoBillController.cs

30
             string sql = " and F_IsDel=0 ";
30
             string sql = " and F_IsDel=0 ";
31
             DataTable dt = new DataTable();
31
             DataTable dt = new DataTable();
32
             #region 筛选
32
             #region 筛选
33
-            if (!string.IsNullOrWhiteSpace(usercode.Trim()))
33
+            if (!string.IsNullOrWhiteSpace(usercode))
34
                 sql += " and F_DealBy='" + usercode.Trim() + "'";
34
                 sql += " and F_DealBy='" + usercode.Trim() + "'";
35
-            if(!string.IsNullOrWhiteSpace(dealstate.Trim()))
35
+            if(!string.IsNullOrWhiteSpace(dealstate))
36
                 sql += " and F_IsDeal="+ dealstate.Trim();
36
                 sql += " and F_IsDeal="+ dealstate.Trim();
37
-            if (!string.IsNullOrWhiteSpace(openid.Trim()))
37
+            if (!string.IsNullOrWhiteSpace(openid))
38
             {
38
             {
39
                 sql += " and F_Openid='"+ openid.Trim() + "'";
39
                 sql += " and F_Openid='"+ openid.Trim() + "'";
40
             }
40
             }
41
-            if (!string.IsNullOrWhiteSpace(btime.Trim()))
41
+            if (!string.IsNullOrWhiteSpace(btime))
42
             {
42
             {
43
                 sql += " and F_CreateOn >= '" + btime.Trim() + "' ";
43
                 sql += " and F_CreateOn >= '" + btime.Trim() + "' ";
44
             }
44
             }
45
-            if (!string.IsNullOrWhiteSpace(etime.Trim()))
45
+            if (!string.IsNullOrWhiteSpace(etime))
46
             {
46
             {
47
                 sql += " and F_CreateOn <= '" + etime.Trim() + "' ";
47
                 sql += " and F_CreateOn <= '" + etime.Trim() + "' ";
48
             }
48
             }