| | |
| | | ids.add(worldCupCompetitor.getId()); |
| | | //已参赛 |
| | | if(0 == worldCupPaymentParticipant.getAlreadyEntered()){ |
| | | worldCupPaymentParticipant.setWorldCupId(null); |
| | | worldCupPaymentParticipant.setAlreadyEntered(1); |
| | | worldCupPaymentParticipantService.updateById(worldCupPaymentParticipant); |
| | | } |
| | |
| | | |
| | | List<CoursePackageOrderStudent> coursePackageOrderStudent = coursePackageOrderStudentClient.getCoursePackageOrderUser(paymentWorldCup.getUid()); |
| | | int sum = coursePackageOrderStudent.stream().mapToInt(CoursePackageOrderStudent::getLaveClassHours).sum(); |
| | | if(sum < worldCup.getClassHour()){ |
| | | if(sum < worldCup.getClassHour() * num){ |
| | | return ResultUtil.error("报名失败,课时不足,请续课!"); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | WorldCup worldCup = this.getById(id); |
| | | worldCup.setStatus(4); |
| | | this.updateById(worldCup); |
| | | } |
| | | |
| | | |