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