From d8aecbc76a43af6dfedf50f481d2b0838841782f Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: 星期四, 20 二月 2025 10:25:41 +0800
Subject: [PATCH] 修改

---
 exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml b/exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml
index 2cabe3f..7e7a2d9 100644
--- a/exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml
+++ b/exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml
@@ -269,8 +269,8 @@
         t.gov_pay_status,
         t.order_no
         from non_coal_pay a
-        inner join non_coal_pay_student t on t.non_coal_pay_id = a.id and t.del_flag = 0 and t.pay_status = 0 and
-        t.order_id is null
+        inner join non_coal_pay_student t on t.non_coal_pay_id = a.id and t.del_flag = 0
+        <if test="isPay != null and isPay == 1 ">and t.pay_status = 0</if>
         inner join non_coal_pay_category b on a.id = b.non_coal_pay_id and b.del_flag = 0
         left join non_coal_category c on b.category_id = c.id and c.del_flag = 0
         where a.del_flag = 0

--
Gitblit v1.9.2