From ba8a3be8e219c6e82cf35b56ae7fda2fefc1ee4c Mon Sep 17 00:00:00 2001 From: zjh <zjh@888> Date: 星期三, 13 十二月 2023 11:01:41 +0800 Subject: [PATCH] zjh 本地 2023/12/13 -1 --- 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