|
|
@ -123,6 +123,35 @@ public class AnnualCompetitionProjectRegistrationController { |
|
|
|
return Result.OK(); |
|
|
|
return Result.OK(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 1分页列表查询 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param annualCompetitionProjectRegistration |
|
|
|
|
|
|
|
* @param pageNo |
|
|
|
|
|
|
|
* @param pageSize |
|
|
|
|
|
|
|
* @param req |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
//@AutoLog(value = "年度比赛项目报名-分页列表查询")
|
|
|
|
|
|
|
|
@ApiOperation(value = "年度比赛项目报名-分页列表查询", notes = "年度比赛项目报名-分页列表查询") |
|
|
|
|
|
|
|
@GetMapping(value = "/liststu") |
|
|
|
|
|
|
|
public Result<IPage<AnnualCompetitionProjectRegistration>> liststu(AnnualCompetitionProjectRegistration annualCompetitionProjectRegistration, |
|
|
|
|
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
|
|
|
|
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
|
|
|
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
|
|
|
//处理查询信息
|
|
|
|
|
|
|
|
QueryWrapper<AnnualCompetitionProjectRegistration> queryWrapper = QueryGenerator.initQueryWrapper(annualCompetitionProjectRegistration, req.getParameterMap()); |
|
|
|
|
|
|
|
Page<AnnualCompetitionProjectRegistration> page = new Page<AnnualCompetitionProjectRegistration>(pageNo, pageSize); |
|
|
|
|
|
|
|
//根据用户角色决定查询信息
|
|
|
|
|
|
|
|
queryWrapperAddRoleInfo(queryWrapper); |
|
|
|
|
|
|
|
//查询
|
|
|
|
|
|
|
|
IPage<AnnualCompetitionProjectRegistration> pageList = annualCompetitionProjectRegistrationService.page(page, queryWrapper); |
|
|
|
|
|
|
|
//处理返回信息
|
|
|
|
|
|
|
|
processData(pageList.getRecords()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 1分页列表查询 |
|
|
|
* 1分页列表查询 |
|
|
@ -249,6 +278,7 @@ public class AnnualCompetitionProjectRegistrationController { |
|
|
|
QueryWrapper<AnnualCompetitionProjectRegistration> queryWrapper = QueryGenerator.initQueryWrapper(annualCompetitionProjectRegistration, req.getParameterMap()); |
|
|
|
QueryWrapper<AnnualCompetitionProjectRegistration> queryWrapper = QueryGenerator.initQueryWrapper(annualCompetitionProjectRegistration, req.getParameterMap()); |
|
|
|
Page<AnnualCompetitionProjectRegistration> page = new Page<AnnualCompetitionProjectRegistration>(pageNo, pageSize); |
|
|
|
Page<AnnualCompetitionProjectRegistration> page = new Page<AnnualCompetitionProjectRegistration>(pageNo, pageSize); |
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
|
|
|
|
|
|
|
//根据登录信息查询负责比赛
|
|
|
|
//根据登录信息查询负责比赛
|
|
|
|
List<Comp> compList =compService.query().eq("comp_admin",loginUser.getUsername()).list(); |
|
|
|
List<Comp> compList =compService.query().eq("comp_admin",loginUser.getUsername()).list(); |
|
|
|
//判空
|
|
|
|
//判空
|
|
|
|