学生报名弹出错误

main
王家东 4 months ago
parent 76171e1f67
commit 42a7a41170
  1. 30
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
  2. 2
      jeecgboot-vue3-master/src/views/annualcompetitionprojectregistration/student/AnnualCompetitionProjectRegistration.api.ts

@ -123,6 +123,35 @@ public class AnnualCompetitionProjectRegistrationController {
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分页列表查询
@ -249,6 +278,7 @@ public class AnnualCompetitionProjectRegistrationController {
QueryWrapper<AnnualCompetitionProjectRegistration> queryWrapper = QueryGenerator.initQueryWrapper(annualCompetitionProjectRegistration, req.getParameterMap());
Page<AnnualCompetitionProjectRegistration> page = new Page<AnnualCompetitionProjectRegistration>(pageNo, pageSize);
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
//根据登录信息查询负责比赛
List<Comp> compList =compService.query().eq("comp_admin",loginUser.getUsername()).list();
//判空

@ -4,7 +4,7 @@ import {useMessage} from "/src/hooks/web/useMessage";
const {createConfirm} = useMessage();
enum Api {
list = '/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/list',
list = '/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/liststu',
choose = '/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/choose',
save = '/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/add',
edit = '/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/edit',

Loading…
Cancel
Save