Explorar el Código

权限管理-搜索接口调整

yuqian %!s(int64=8) %!d(string=hace) años
padre
commit
f28da883c9

+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/RoleInfoController.cs

@@ -27,11 +27,11 @@ namespace CallCenterApi.Interface.Controllers
27 27
             StringBuilder sb = new StringBuilder();
28 28
             if (!string.IsNullOrWhiteSpace(filter.Name))
29 29
             {
30
-                sb.Append(" and  F_RoleName like '%" + filter.Name ?? "" + "%' ");
30
+                sb.Append($" and  F_RoleName like '%{filter.Name}%' ");
31 31
             }
32 32
             if (!string.IsNullOrWhiteSpace(filter.Code))
33 33
             {
34
-                sb.Append(" and F_RoleCode like '%" + filter.Code ?? "" + "%'  ");
34
+                sb.Append($" and F_RoleCode like '%{filter.Code}%'  ");
35 35
             }
36 36
             DataTable dt = new DataTable();
37 37
             int recordCount = 0;