From 930718b29346c0ac3aaad83337ed7e5d99b2259a Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: 星期五, 21 二月 2025 10:37:22 +0800
Subject: [PATCH] 修改

---
 exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java
index 333f15c..ee1eee7 100644
--- a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java
+++ b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/NonCoalPayStudentServiceImpl.java
@@ -143,12 +143,12 @@
                     return orderId;
                 } else {
                     log.error("生成订单失败:" + resultVo.getRespmsg() + ",请稍后重试,错误编码:" + resultVo.getRespcode() + "参数如下:" + payReqData);
-                    throw new BusinessException(this.getClass(), ResultConstants.BUSINESS_ERROR, "发起支付失败,请稍后重试");
+                    throw new BusinessException(this.getClass(), ResultConstants.SYSTEM_ERROR, "发起支付失败,请稍后重试");
                 }
 
             } catch (Exception e) {
                 log.error("发起支付调用接口失败:" + e);
-                throw new BusinessException(this.getClass(), ResultConstants.BUSINESS_ERROR, e.getMessage());
+                throw new BusinessException(this.getClass(), ResultConstants.SYSTEM_ERROR, e.getMessage());
             } finally {
                 redisLock.unlock(lockKey);
             }
@@ -213,7 +213,7 @@
         payReqData.setOrderNo(orderNo);
         payReqData.setPayerType(Integer.valueOf(payType));
         payReqData.setMoney(nonCoalPayOrder.getAmount().multiply(BigDecimal.valueOf(nonCoalStuList.size())));
-        payReqData.setAmount(nonCoalStuList.size());
+        payReqData.setAmount(nonCoalPayCategoryList.size());
 
         payReqData.setDesc(nonCoalPayOrder.getBatchName());
 

--
Gitblit v1.9.2