Bladeren bron

用户管理增加搜索条件:坐席组,用户状态,用户角色

zhengbingbing 8 jaren geleden
bovenliggende
commit
b3a5c9970a

+ 9 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/UserAccountController.cs

@@ -44,9 +44,17 @@ namespace CallCenterApi.Interface.Controllers
44 44
                     sql += str;
45 45
                 }
46 46
                 if (!string.IsNullOrWhiteSpace(filter.sgid))
47
-                {
47
+                {//坐席组ID
48 48
                     sql += " and F_SeartGroupID in (" + filter.sgid + ")";
49 49
                 }
50
+                if(!string.IsNullOrWhiteSpace(filter.ustate))
51
+                {//用户状态:0启用;1禁用
52
+                    sql += " and F_DeleteFlag=" + filter.ustate;
53
+                }
54
+                if (!string.IsNullOrWhiteSpace(filter.roleid))
55
+                {//用户角色
56
+                    sql += " and F_RoleId in (" + filter.roleid + ")";
57
+                }
50 58
                 int recordCount = 0;
51 59
                 dt = BLL.PagerBLL.GetListPager(
52 60
                                         "T_Sys_UserAccount",

+ 2 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Filter/FilterUserAccount.cs

@@ -15,5 +15,7 @@ namespace CallCenterApi.Interface.Models.Filter
15 15
         public int dptid { get; set; } = 0;
16 16
         public string Key { get; set; } = "";
17 17
         public string sgid { get; set; } = "";
18
+        public string ustate { get; set; } = "";
19
+        public string roleid { get; set; } = "";
18 20
     }
19 21
 }