mirror of https://gitee.com/stylefeng/roses
【8.0.5】更新用户相关的接口,增加一个通过用户id补全用户名称的方法
parent
c47b51ab80
commit
d8e94cc1ae
|
@ -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<SimpleDict> batchGetNameByUserIdList(Set<Long> userIdList);
|
||||
|
||||
}
|
||||
|
|
|
@ -708,6 +708,13 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
return tempLoginUserInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SimpleDict> batchGetNameByUserIdList(Set<Long> userIdList) {
|
||||
SysUserRequest sysUserRequest = new SysUserRequest();
|
||||
sysUserRequest.setUserIdList(userIdList);
|
||||
return this.batchGetName(sysUserRequest);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取信息
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue