From 19d2a251d102a97a23084f23c024370de16a8017 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 30 Jul 2024 18:44:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B9=B4=E5=BA=A6=E6=AF=94=E8=B5=9B?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=80=E5=A7=8B=E6=97=B6=E9=97=B4=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=A4=A7=E4=BA=8E=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/annualcomp/controller/AnnualCompController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java index 3859e459..56b062a1 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java @@ -369,8 +369,8 @@ public class AnnualCompController extends JeecgController end) { + return Result.error("开始时间不能大于结束时间"); } String compname = annualCompVo.getCompname(); String annualname = annualCompVo.getAnnualname(); From c1a4545735f649bd49a7a92ecffbb426ad651e61 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 30 Jul 2024 20:35:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A5=96=E9=A1=B9=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../awardpersion/controller/AwardPersionController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/awardpersion/controller/AwardPersionController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/awardpersion/controller/AwardPersionController.java index b4b14f9d..06967da0 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/awardpersion/controller/AwardPersionController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/awardpersion/controller/AwardPersionController.java @@ -514,10 +514,14 @@ public class AwardPersionController extends JeecgController queryWrapperaca = QueryGenerator.initQueryWrapper(annualCompAward, request.getParameterMap()); queryWrapperaca.eq("annucompid",list.get(i).getAnnualCompP()); List listaca = annualCompAwardService.list(queryWrapperaca); + if(listaca.size()==0){ + return Result.error("未设置年度比赛奖项"); + } TeamManagement teamManagement = new TeamManagement(); QueryWrapper queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, request.getParameterMap()); queryWrappertm.eq("enroll_code",list.get(i).getEnrollCode()); List listtm = teamManagementService.list(queryWrappertm); + try { for (int l = 0 ; l < listtm.size() ; l++){ SysUser sysUser = sysUserService.getById(listtm.get(l).getUserId()); list.get(i).setStudentorg(sysDepartService.queryDepartsByUsername(sysUser.getUsername()).get(0).getId()); @@ -555,6 +559,9 @@ public class AwardPersionController extends JeecgController