项目库相关人员-导入修改
This commit is contained in:
+5
@@ -250,4 +250,9 @@ public interface ISysUserService extends IService<SysUser> {
|
||||
* @return
|
||||
*/
|
||||
List<SysUser> querySysUserListByIdList(List<String> userIdList);
|
||||
|
||||
/**
|
||||
* 根据用户名usernameList查询id
|
||||
*/
|
||||
List<SysUser> queryUserIdListByNameList(List<String> usernameList);
|
||||
}
|
||||
|
||||
+12
@@ -481,4 +481,16 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||
return sysUsers;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据用户名usernameList查询id
|
||||
*/
|
||||
@Override
|
||||
public List<SysUser> queryUserIdListByNameList(List<String> usernameList){
|
||||
usernameList = usernameList.stream().distinct().collect(Collectors.toList());
|
||||
QueryWrapper<SysUser> sysUserQueryWrapper = new QueryWrapper<>();
|
||||
sysUserQueryWrapper.lambda().in(SysUser::getUsername,usernameList);
|
||||
List<SysUser> sysUsers = this.baseMapper.selectList(sysUserQueryWrapper);
|
||||
return sysUsers;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user