From df71dc63663ffcc50a6f78bcc5f16ca033aaab53 Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Wed, 22 Jan 2025 13:40:54 +0800
Subject: [PATCH] 特种作业非煤缴费版本导入优化
---
exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml | 5 +++--
1 files changed, 3 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 0ec925f..9370704 100644
--- a/exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml
+++ b/exam-system/src/main/resources/mapper/pay/NonCoalPayMapper.xml
@@ -184,9 +184,10 @@
left join sys_dept d on a.dept_id = d.dept_id
left join sys_district d2 on a.district_code = d2.code
where a.del_flag = 0
- and t.pay_status = 0
and t.phone = #{phone}
- and t.id_card = #{idCard} limit 1
+ and t.id_card = #{idCard}
+ order by t.pay_status asc, t.create_time desc
+
</select>
--
Gitblit v1.9.2