【8.0.5】更新用户相关的接口,增加一个通过用户id补全用户名称的方法

pull/60/head
fengshuonan 2023-12-29 09:38:08 +08:00
parent c47b51ab80
commit d8e94cc1ae
2 changed files with 17 additions and 0 deletions

View File

@ -24,9 +24,11 @@
*/ */
package cn.stylefeng.roses.kernel.sys.api; 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 cn.stylefeng.roses.kernel.sys.api.pojo.user.*;
import java.util.List; import java.util.List;
import java.util.Set;
/** /**
* Api * Api
@ -149,4 +151,12 @@ public interface SysUserServiceApi {
*/ */
TempLoginUserInfo createTempUserInfo(Long userId); TempLoginUserInfo createTempUserInfo(Long userId);
/**
*
*
* @author fengshuonan
* @since 2023/12/29 9:33
*/
List<SimpleDict> batchGetNameByUserIdList(Set<Long> userIdList);
} }

View File

@ -708,6 +708,13 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
return tempLoginUserInfo; return tempLoginUserInfo;
} }
@Override
public List<SimpleDict> batchGetNameByUserIdList(Set<Long> userIdList) {
SysUserRequest sysUserRequest = new SysUserRequest();
sysUserRequest.setUserIdList(userIdList);
return this.batchGetName(sysUserRequest);
}
/** /**
* *
* *