TASK:分页获取所有用户id,添加按邮箱模糊查询

This commit is contained in:
2026-01-07 11:26:39 +08:00
parent 4879cfeb60
commit 9f523d5953
3 changed files with 9 additions and 4 deletions

View File

@@ -798,7 +798,7 @@ public class ConvenientInquiryServiceImpl extends ServiceImpl<QuestionnaireMappe
return accountMapper.selectPage(new Page<>(queryUserConditionsVO.getPage(), queryUserConditionsVO.getSize()), queryWrapper);
}
public IPage<Map<String, Object>> getAllUserIdList(Integer pageNum, Integer pageSize) {
public IPage<Map<String, Object>> getAllUserIdList(Integer pageNum, Integer pageSize, String email) {
Long accountId = UserContext.getUserHolder().getId();
Account account = accountMapper.selectById(accountId);
@@ -823,6 +823,10 @@ public class ConvenientInquiryServiceImpl extends ServiceImpl<QuestionnaireMappe
queryWrapper.lambda().eq(Account::getOrganizationName, account.getOrganizationName());
}
if (!StringUtil.isNullOrEmpty(email)) {
queryWrapper.lambda().like(Account::getUserEmail, email);
}
// 执行分页查询
IPage<Account> accountPage = accountMapper.selectPage(page, queryWrapper);