diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java index b23b27a62..1eba73dee 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/SysUserServiceApi.java @@ -24,9 +24,11 @@ */ package cn.stylefeng.roses.kernel.sys.api; +import cn.stylefeng.roses.kernel.rule.pojo.dict.SimpleDict; import cn.stylefeng.roses.kernel.sys.api.pojo.user.*; import java.util.List; +import java.util.Set; /** * 基础核心业务Api @@ -149,4 +151,12 @@ public interface SysUserServiceApi { */ TempLoginUserInfo createTempUserInfo(Long userId); + /** + * 批量获取用户名称 + * + * @author fengshuonan + * @since 2023/12/29 9:33 + */ + List batchGetNameByUserIdList(Set userIdList); + } diff --git a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java index c192221ab..922575b34 100644 --- a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java +++ b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/service/impl/SysUserServiceImpl.java @@ -708,6 +708,13 @@ public class SysUserServiceImpl extends ServiceImpl impl return tempLoginUserInfo; } + @Override + public List batchGetNameByUserIdList(Set userIdList) { + SysUserRequest sysUserRequest = new SysUserRequest(); + sysUserRequest.setUserIdList(userIdList); + return this.batchGetName(sysUserRequest); + } + /** * 获取信息 *