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/TjOrderMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml
index b199c18..4254b29 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml
@@ -85,7 +85,7 @@
     <select id="getTjOrderList" parameterType="java.util.Map" resultMap="TjOrderResult">
         <include refid="selectTjOrderVo"/>
         <where>
-            <if test="tjNum != null">and tj_number LIKE '%${tjNum}'</if>
+            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
             <if test="checkStatus != null and checkStatus==0 ">and status =288</if>
             <if test="checkStatus != null and checkStatus==1 ">and status =401 or  status= 402 </if>
             <if test="compId != null ">and comp_id = #{compId}</if>
@@ -99,7 +99,7 @@
     <select id="getWCsTjOrderList" parameterType="java.util.Map" resultMap="TjOrderResult">
         <include refid="selectTjOrderVo"/>
         <where>
-            <if test="tjNum != null">and tj_number LIKE '%${tjNum}'</if>
+            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
             <if test="compId != null ">and comp_id = #{compId}</if>
             <if test="beginTime != null and endTime != null ">and create_time BETWEEN #{beginTime} and #{endTime}</if>
             and  deleted =0
@@ -112,7 +112,7 @@
     <select id="getYCsTjOrderList" parameterType="java.util.Map" resultMap="TjOrderResult">
         <include refid="selectTjOrderVo"/>
         <where>
-            <if test="tjNum != null">and tj_number LIKE '%${tjNum}'</if>
+            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
             <if test="compId != null ">and comp_id = #{compId}</if>
             <if test="beginTime != null and endTime != null ">and create_time BETWEEN #{beginTime} and #{endTime}</if>
             and  deleted =0
@@ -125,7 +125,7 @@
     <select id="getCsTjOrderList1" parameterType="java.util.Map" resultMap="TjOrderResult">
         <include refid="selectTjOrderVo"/>
         <where>
-            <if test="tjNum != null">and tj_number LIKE '%${tjNum}'</if>
+            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
             <if test="checkStatus != null and checkStatus==0 ">and status =301</if>
             <if test="checkStatus != null and checkStatus== 1 ">and status =401 or status= 402 </if>
             <if test="compId != null ">and comp_id = #{compId}</if>

--
Gitblit v1.8.0