From 6061c45849de0f3ac6d05fdfa2bac4b09c21179b Mon Sep 17 00:00:00 2001 From: “djh” <“3298565835@qq.com”> Date: 星期四, 06 三月 2025 10:11:10 +0800 Subject: [PATCH] 考试缴费统计修改 --- exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java index 80b01df..e1d69bf 100644 --- a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayServiceImpl.java +++ b/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,12 @@ 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()); } -- Gitblit v1.9.2