From 8fea6528feebba033282d218858a61c3873a1307 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 28 Jul 2024 17:40:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=88=86=E6=9E=90=E6=8A=A5?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...AnnualCompetitionProjectRegistrationController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java index dcd939bc..05725349 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java @@ -1382,6 +1382,11 @@ public class AnnualCompetitionProjectRegistrationController { map.put("xj",0); } //获奖数 + QueryWrapper queryWrapperaphj = new QueryWrapper<>(); + queryWrapperaphj.eq("studentcode",user.getUsername()); + queryWrapperaphj.in(bmbhs.size()!=0,"enroll_code",bmbhs); + List listhj = awardPersionService.list(queryWrapperaphj); + map.put("hjNumber",listhj.size()); //一等奖数 AwardPersion awardPersion1 = new AwardPersion(); QueryWrapper queryWrapperap1 = QueryGenerator.initQueryWrapper(awardPersion1, req.getParameterMap()); @@ -1637,6 +1642,11 @@ public class AnnualCompetitionProjectRegistrationController { map.put("xj",0); } //获奖数 + QueryWrapper queryWrapperaphj = new QueryWrapper<>(); + queryWrapperaphj.eq("studentcode",user.getUsername()); + queryWrapperaphj.in(bmbhs.size()!=0,"enroll_code",bmbhs); + List listhj = awardPersionService.list(queryWrapperaphj); + map.put("hjNumber",listhj.size()); //一等奖数 AwardPersion awardPersion1 = new AwardPersion(); QueryWrapper queryWrapperap1 = QueryGenerator.initQueryWrapper(awardPersion1, req.getParameterMap());