From 14ecea8537d5b29ca64c75aad4ff49265018415d Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期三, 02 七月 2025 08:51:22 +0800
Subject: [PATCH] zjh20250702

---
 ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
index 8fbc575..8a63913 100644
--- a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
@@ -278,6 +278,7 @@
   LEFT JOIN tj_report r ON o.tj_number = r.tj_number
 WHERE
   c.cus_idcard = #{card}
+    and o.create_time > #{time}
         ORDER BY
         o.create_time DESC
     </select>
@@ -307,7 +308,7 @@
   JOIN tj_customer c ON o.user_id = c.cus_id
   LEFT JOIN tj_report r ON o.tj_number = r.tj_number
 WHERE
-  c.cus_idcard = #{card} AND c.cus_name = #{name} AND c.deleted = 0
+  c.cus_idcard = #{card} AND c.cus_name = #{name} AND c.deleted = 0 and o.heshou_status = 1
         ORDER BY
         o.create_time DESC
     </select>

--
Gitblit v1.8.0