From a1808ba0ff1ccc2efacb69c1033054dbaab8687f Mon Sep 17 00:00:00 2001
From: zhaowenxuan <chacca165@163.com>
Date: 星期四, 10 七月 2025 17:57:16 +0800
Subject: [PATCH] 2025-07-10

---
 ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml
index 62d6251..f88f78e 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml
@@ -78,18 +78,20 @@
     </sql>
 
     <select id="selectTjReservationList" parameterType="TjReservation" resultMap="TjReservationResult">
-        <include refid="selectTjReservationVo"/>
+        SELECT a.* ,b.dw_dept_name ,b.grouping_name FROM
+        tj_reservation a
+        LEFT JOIN tj_dw_grouping b ON b.id = a.grouping_id
         <where>
-            <if test="name != null  and name != ''">and name =#{name}</if>
-            <if test="idCard != null  and idCard != ''">and id_card = #{idCard}</if>
-            <if test="phoe != null  and phoe != ''">and phoe = #{phoe}</if>
-            <if test="company != null  and company != ''">and company like concat('%', #{company}, '%')</if>
-            <if test="companyId != null  and companyId != ''">and company_id = #{companyId} </if>
-            <if test="reservationTime != null ">and reservation_time  BETWEEN #{reservationTime} and now()</if>
-            <if test="isExpire != null ">and is_expire = #{isExpire}</if>
-            and deleted = '0'
+            <if test="name != null  and name != ''">and a.name =#{name}</if>
+            <if test="idCard != null  and idCard != ''">and a.id_card = #{idCard}</if>
+            <if test="phoe != null  and phoe != ''">and a.phoe = #{phoe}</if>
+            <if test="company != null  and company != ''">and a.company like concat('%', #{company}, '%')</if>
+            <if test="companyId != null  and companyId != ''">and a.company_id = #{companyId} </if>
+            <if test="yykssj != null and yyjssj != null ">and a.reservation_time  BETWEEN #{yykssj} and #{yyjssj} </if>
+            <if test="isExpire != null ">and a.is_expire = #{isExpire}</if>
         </where>
-        ORDER BY create_time desc
+        and a.deleted = 0
+        ORDER BY a.create_time desc
     </select>
 
 

--
Gitblit v1.8.0