教育训练处考试制证系统后端
“djh”
2025-04-24 f9cb0f3f384279b2cbe87c35dde3ba573a0197f3
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/CoalPayServiceImpl.java
@@ -81,12 +81,12 @@
            List<CoalCategory> coalCategories = coalCategoryMapper.selectByCoalPayId(pay.getId());
            pay.setCoalCategoryList(coalCategories);
            //学员数据
            List<CoalPayStudent> coalPayStudents = coalPayStudentService.selectByCoalPayId(pay.getId());
            List<CoalPayStudent> havePay = coalPayStudents.stream()
                    .filter(stu -> stu.getPayStatus() != null && stu.getPayStatus() == 1)
                    .collect(Collectors.toList());
            pay.setTotalNum(coalPayStudents.size());
            pay.setHavePayNum(havePay.size());
//            List<CoalPayStudent> coalPayStudents = coalPayStudentService.selectByCoalPayId(pay.getId());
//            List<CoalPayStudent> havePay = coalPayStudents.stream()
//                    .filter(stu -> stu.getPayStatus() != null && stu.getPayStatus() == 1)
//                    .collect(Collectors.toList());
//            pay.setTotalNum(coalPayStudents.size());
//            pay.setHavePayNum(havePay.size());
//            coalPayRepDtos.add(coalPayRepDto);
        }
        return coalPays;
@@ -312,6 +312,12 @@
                payStudent.setGovPayStatus(2);
                payStudent.setPayCode(resultVo.getRespdata().getBillNo());
                coalPayStudentService.updateByCoalPayIdAndStatus(payStudent);
                CoalPay coalPay1 = new CoalPay();
                coalPay1.setPayCompanyCard(coalTeamPayReq.getPayCompanyCard());
                coalPay1.setPayCompanyName(coalTeamPayReq.getPayCompanyName());
                coalPay1.setId(coalTeamPayReq.getCoalPayId());
                coalPay1.setPayPersonType(2);
                coalPayMapper.updateCoalPayById(coalPay1);
                return resultVo.getRespdata().getOrderId();
            } else {
                throw new BusinessException(this.getClass(), ResultConstants.BUSINESS_ERROR, "发起支付失败,请稍后重试");