区分前后台调用活动报名列表

main
rong.liu 11 months ago
parent d4df6c2637
commit 06b46226b7
  1. 4
      competition/src/main/java/com/huoran/competition/entity/req/PageRegistrationStaffReq.java
  2. 4
      competition/src/main/java/com/huoran/competition/service/impl/CompetitionRegistrationServiceImpl.java

@ -32,4 +32,8 @@ public class PageRegistrationStaffReq extends PageReq{
@ApiModelProperty(value = "团队排序标识",example = "null") @ApiModelProperty(value = "团队排序标识",example = "null")
private Integer teamOrder; private Integer teamOrder;
@ApiModelProperty(value = "查询来源(1.前台/2.后台)")
private Integer querySource;
} }

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

Loading…
Cancel
Save