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

+ 11 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -58,7 +58,11 @@ namespace CallCenterApi.Interface.Controllers.customer
58 58
                 string strpagesize = RequestString.GetQueryString("pagesize");
59 59
                 int pagesize = 10;
60 60
 
61
-                if (string.IsNullOrEmpty(code) && !string.IsNullOrEmpty(userModel.groupcode))
61
+                if (!string.IsNullOrEmpty(code))
62
+                {
63
+                    sql += " and F_GroupCode = '" + code + "' ";
64
+                }
65
+                else if (!string.IsNullOrEmpty(userModel.groupcode))
62 66
                 {
63 67
                     sql += " and F_GroupCode = '" + userModel.groupcode + "' ";
64 68
                 }
@@ -158,7 +162,12 @@ namespace CallCenterApi.Interface.Controllers.customer
158 162
 
159 163
 
160 164
                 string sql = " F_IsDelete=0";
161
-                if (string.IsNullOrEmpty(code) && !string.IsNullOrEmpty(userModel.groupcode))
165
+
166
+                if (!string.IsNullOrEmpty(code))
167
+                {
168
+                    sql += " and F_GroupCode = '" + code + "' ";
169
+                }
170
+                else if (!string.IsNullOrEmpty(userModel.groupcode))
162 171
                 {
163 172
                     sql += " and F_GroupCode = '" + userModel.groupcode + "' ";
164 173
                 }