commit
This commit is contained in:
+1
-5
@@ -91,11 +91,7 @@ public class CommonServiceImpl extends BaseServiceImpl implements CommonService
|
||||
public <T> List<Sys_user> findUserInfoByRoleCode(PFun<T, ?> name, String columnValue, RoleConstant... roleConstant) {
|
||||
String column = LambdaQuery.resolve(name);
|
||||
|
||||
List<String> list = Arrays.stream(roleConstant).map(o -> {
|
||||
Sys_role role = sysRoleService.getByCode(o.name());
|
||||
return role.getId();
|
||||
}).toList();
|
||||
|
||||
List<String> list = Arrays.stream(roleConstant).map(Enum::name).toList();
|
||||
return findUserInfoByRoleCode(column, columnValue, list);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user