| | |
| | | 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; |
| | |
| | | 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, "发起支付失败,请稍后重试"); |