|
|
|
@ -81,13 +81,17 @@ public class CompetitionRegistrationServiceImpl extends ServiceImpl<CompetitionR |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R registrationPageConditionQuery(PageRegistrationStaffReq req) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Page<RegistrationVO> page = new Page<RegistrationVO>(req.getPageNum(), req.getPageSize()); |
|
|
|
|
IPage<RegistrationVO> pageList = baseMapper.selectRegistrationByCondition(page, req); |
|
|
|
|
|
|
|
|
|
if (req.getQuerySource() == 1) { |
|
|
|
|
pageList |
|
|
|
|
.getRecords().forEach(registrationVO -> { |
|
|
|
|
registrationVO.setUsername(HandleNameAsteriskReplacementUtil.desensitizedName(registrationVO.getUsername())); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return R.ok().put("data", pageList); |
|
|
|
|
} |
|
|
|
|