TASK:分页获取所有用户id,添加按邮箱模糊查询
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user