From c2c0f719cc09be51f333621b6618fc34fb21f492 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 30 Jul 2024 12:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E7=BB=A9=E6=B1=87=E6=80=BB=E5=92=8C?= =?UTF-8?q?=E8=AF=84=E5=A5=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/AnnualCompPointController.java | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java index 34860de7..9c5444f6 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java @@ -337,6 +337,15 @@ public class AnnualCompPointController extends JeecgController cjhz(@RequestParam(name = "id", required = true) String id,HttpServletRequest req) { AnnualCompPoint annualCompPoint = annualCompPointService.getById(id); + QueryWrapper queryWrappersc = new QueryWrapper<>(); + queryWrappersc.eq("annual_compid",annualCompPoint.getAnnualCompId()); + queryWrappersc.eq("annual_comp_p",annualCompPoint.getId()); + List listsc = scorePersionService.list(queryWrappersc); + if(listsc.size()>0){ + for (int k = 0 ; k < listsc.size() ; k++){ + scorePersionService.removeById(listsc.get(k).getId()); + } + } QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.select("bmcode,SUM(score) as score"); queryWrapper.eq("ann_com_p",id); @@ -516,12 +525,22 @@ public class AnnualCompPointController extends JeecgController queryWrapperap = new QueryWrapper<>(); + queryWrapperap.eq("annal_comp",annualCompPoint.getAnnualCompId()); + queryWrapperap.eq("annual_comp_p",annualCompPoint.getId()); + List listap = awardPersionService.list(queryWrapperap); + if(listap.size()>0){ + for (int k = 0 ; k < listap.size() ; k++){ + awardPersionService.removeById(listap.get(k).getId()); + } + } QueryWrapper queryWrappersp = new QueryWrapper<>(); queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid()); queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId()); queryWrappersp.eq("annual_comp_p",id); queryWrappersp.orderByAsc("sort"); List listsp = scorePersionService.list(queryWrappersp); + try { for (int i = 0 ; i listsp = scorePersionService.list(queryWrappersp); + try { for (int i = 0 ; i