教育训练处考试制证系统后端
“djh”
2025-04-24 f9cb0f3f384279b2cbe87c35dde3ba573a0197f3
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java
@@ -228,7 +228,7 @@
        int i = nonCoalPayMapper.updateNonCoalPay(nonCoalPay1);
        if (payPersonType == 2) {
            //更新未缴费的为团体
            nonCoalPayStudentMapper.updateNonCoalPayStudentType(id, SecurityUtils.getUsername());
            nonCoalPayStudentMapper.updateNonCoalPayStudentType(id, SecurityUtils.getUsername(),0);
        }
        return i;
    }
@@ -257,7 +257,13 @@
            throw new ServiceException("该数据不存在");
        }
        //验证是否有学员已缴费
        checkHavePay(id);
        NonCoalPayStudent nonCoalPayStudent = new NonCoalPayStudent();
        nonCoalPayStudent.setNonCoalPayId(id);
        nonCoalPayStudent.setPayStatus(1L);
        List<NonCoalPayStudent> nonCoalPayStudents = nonCoalPayStudentService.selectNonCoalPayStudentList(nonCoalPayStudent);
        if (nonCoalPayStudents.size()>0){
            throw new ServiceException("该批次存在已缴费学员,请勿删除");
        }
        return nonCoalPayMapper.deleteNonCoalPayById(id, SecurityUtils.getUsername());
    }