From 1c445c18880c8e6673a0fd8fe62e589ae1100f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Fri, 20 Sep 2024 10:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B09.20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HitCompetitionStudentInfoController.java | 11 ++- .../ruoyi/cms/service/IHitRegInfoService.java | 1 - .../service/impl/HitRegInfoServiceImpl.java | 38 --------- .../cms/HitCompetitionStudentInfoMapper.xml | 1 + ruoyi-ui/src/api/hit/stuInfo.js | 6 ++ ruoyi-ui/src/views/hit/stuInfo/index.vue | 79 ++++++++++++------- 6 files changed, 61 insertions(+), 75 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitCompetitionStudentInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitCompetitionStudentInfoController.java index e68484b..fa4c7fa 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitCompetitionStudentInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/controller/HitCompetitionStudentInfoController.java @@ -71,12 +71,11 @@ public class HitCompetitionStudentInfoController extends BaseController { /** * 获取大赛学生详细信息 */ -// @PreAuthorize("@ss.hasPermi('system:info:query')") -// @GetMapping(value = "/{id}") -// public AjaxResult getInfo(@PathVariable("id") String id) -// { -// return success(hitCompetitionStudentInfoService.selectHitCompetitionStudentInfoById(id)); -// } + @GetMapping(value = "/byId/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(hitCompetitionStudentInfoService.selectHitCompetitionStudentInfoById(id)); + } /** * 新增大赛学生 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegInfoService.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegInfoService.java index 3e6e2e6..0b3bf07 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegInfoService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/IHitRegInfoService.java @@ -27,7 +27,6 @@ public interface IHitRegInfoService * @return 报名信息集合 */ public List selectHitRegInfoList(HitRegInfo hitRegInfo); -// public HitRegInfoVo selectHitRegInfoListC(HitRegInfo hitRegInfo); /** * 新增报名信息 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegInfoServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegInfoServiceImpl.java index e104b96..f2f3890 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegInfoServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/cms/service/impl/HitRegInfoServiceImpl.java @@ -112,44 +112,6 @@ public class HitRegInfoServiceImpl implements IHitRegInfoService return hitRegInfos; } - public HitRegInfoVo selectHitRegInfoListC(HitRegInfo hitRegInfo) - { - Long userId = SecurityUtils.getLoginUser().getUserId(); - //判断当前登陆人是否是领队老师,如果是查询该老师学校下的战队 - HitRegistrationTeachInfo teacherInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(userId); - if (teacherInfo != null && teacherInfo.getType().equals("1")) { - hitRegInfo.setSchoolName(teacherInfo.getSchoolName()); - } - List hitRegInfos = hitRegInfoMapper.selectHitRegInfoList(hitRegInfo); - for (HitRegInfo regInfo : hitRegInfos) { - HitRegInfoUser hitRegInfoUser =new HitRegInfoUser(); - hitRegInfoUser.setRegId(regInfo.getId()); - List hitRegInfoUsers = regInfoUserService.selectHitRegInfoUserList(hitRegInfoUser); - for (HitRegInfoUser regInfoUser : hitRegInfoUsers) { - switch (regInfoUser.getType()) { - case "3": { - HitRegistrationTeachInfo hitRegistrationTeachInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(regInfoUser.getUserId()); - regInfo.setLdTeacher(hitRegistrationTeachInfo); - break; - } - case "2": { - HitRegistrationTeachInfo hitRegistrationTeachInfo = teachInfoMapper.selectHitRegistrationTeachInfoByUserId(regInfoUser.getUserId()); - regInfo.getZdTeacher().add(hitRegistrationTeachInfo); - break; - } - case "1": - HitCompetitionStudentInfo studentInfo = hitCompetitionStudentInfoMapper.selectHitCompetitionStudentInfoByUserId(regInfoUser.getUserId()); - regInfo.getStudentUserss().add(studentInfo); - break; - } - } - } - HitRegInfoVo hitRegInfoVo = new HitRegInfoVo(); - hitRegInfoVo.setHitRegInfo(hitRegInfos); - - return hitRegInfoVo; - } - /** * 新增报名信息 * diff --git a/ruoyi-admin/src/main/resources/mapper/cms/HitCompetitionStudentInfoMapper.xml b/ruoyi-admin/src/main/resources/mapper/cms/HitCompetitionStudentInfoMapper.xml index 66a6034..95b5dfc 100644 --- a/ruoyi-admin/src/main/resources/mapper/cms/HitCompetitionStudentInfoMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/cms/HitCompetitionStudentInfoMapper.xml @@ -54,6 +54,7 @@