This commit is contained in:
@jyuhsin
2025-09-05 17:04:50 +08:00
parent ed940f1b7f
commit 91be38bb52
3 changed files with 37 additions and 24 deletions
@@ -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);
}