exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java
@@ -259,9 +259,10 @@ //验证是否有学员已缴费 NonCoalPayStudent nonCoalPayStudent = new NonCoalPayStudent(); nonCoalPayStudent.setNonCoalPayId(id); nonCoalPayStudent.setPayStatus(1L); List<NonCoalPayStudent> nonCoalPayStudents = nonCoalPayStudentService.selectNonCoalPayStudentList(nonCoalPayStudent); if (nonCoalPayStudents.size()>0){ throw new ServiceException("该批次存在学员,请勿删除"); throw new ServiceException("该批次存在已缴费学员,请勿删除"); } return nonCoalPayMapper.deleteNonCoalPayById(id, SecurityUtils.getUsername()); }