| | |
| | | int i = nonCoalPayMapper.updateNonCoalPay(nonCoalPay1); |
| | | if (payPersonType == 2) { |
| | | //更新未缴费的为团体 |
| | | nonCoalPayStudentMapper.updateNonCoalPayStudentType(id, SecurityUtils.getUsername()); |
| | | nonCoalPayStudentMapper.updateNonCoalPayStudentType(id, SecurityUtils.getUsername(),0); |
| | | } |
| | | return i; |
| | | } |
| | |
| | | throw new ServiceException("该数据不存在"); |
| | | } |
| | | //验证是否有学员已缴费 |
| | | checkHavePay(id); |
| | | NonCoalPayStudent nonCoalPayStudent = new NonCoalPayStudent(); |
| | | nonCoalPayStudent.setNonCoalPayId(id); |
| | | List<NonCoalPayStudent> nonCoalPayStudents = nonCoalPayStudentService.selectNonCoalPayStudentList(nonCoalPayStudent); |
| | | if (nonCoalPayStudents.size()>0){ |
| | | throw new ServiceException("该批次存在学员,请勿删除"); |
| | | } |
| | | return nonCoalPayMapper.deleteNonCoalPayById(id, SecurityUtils.getUsername()); |
| | | } |
| | | |