From c7e8b28a453bf85fb78c1f09a6d613ecef9ea240 Mon Sep 17 00:00:00 2001
From: lige <bestlige@outlook.com>
Date: 星期一, 11 十二月 2023 08:27:12 +0800
Subject: [PATCH] 23

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

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml
index cef40c0..ad35a8f 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjReservationMapper.xml
@@ -83,7 +83,7 @@
             <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 "%"#{company}"%"</if>
+            <if test="company != null  and company != ''">and company like concat('%', #{company}, '%')</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'
@@ -96,7 +96,7 @@
         <where>
             <if test="name != null  and name != ''">and name = #{name}</if>
             <if test="phoe != null  and phoe != ''">and phoe = #{phoe}</if>
-            <if test="company != null  and company != ''">and company like "%"#{company}"%"</if>
+            <if test="company != null  and company != ''">and company like concat('%', #{company}, '%')</if>
             <if test="reservationTime != null ">and reservation_time = #{reservationTime}</if>
             and deleted = '1'
         </where>

--
Gitblit v1.8.0