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 |   44 ++++++++++++++++++++++++++++++++++++++------
 1 files changed, 38 insertions(+), 6 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml
index 16a0e9b..4254b29 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml
@@ -69,7 +69,15 @@
                status,
                confirm_doctor,
                confirm_time,
-               confirm_status
+               confirm_status,
+               group_id,
+               firm_dept_id,
+               heshou_status,
+               heshou_doctor,
+               heshou_time,
+               is_hz,
+               get_type,
+               tj_category
         from tj_order
     </sql>
 
@@ -77,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>
@@ -91,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
@@ -104,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
@@ -117,9 +125,9 @@
     <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</if>
+            <if test="checkStatus != null and checkStatus== 1 ">and status =401 or status= 402 </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
@@ -193,6 +201,14 @@
             <if test="confirmDoctor != null">confirm_doctor,</if>
             <if test="confirmTime != null">confirm_time,</if>
             <if test="confirmStatus != null">confirm_status,</if>
+            <if test="groupId != null">group_id,</if>
+            <if test="firmDeptId != null">firm_dept_id,</if>
+            <if test="heshouStatus != null">heshou)status,</if>
+            <if test="heshouDoctor != null">heshou_doctor,</if>
+            <if test="heshouTime != null">heshou_time,</if>
+            <if test="isHz != null">is_hz,</if>
+            <if test="getType != null">get_type,</if>
+            <if test="tjCategory != null">tj_category,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="userId != null">#{userId},</if>
@@ -225,6 +241,14 @@
             <if test="confirmDoctor != null">#{confirmDoctor},</if>
             <if test="confirmTime != null">#{confirmTime},</if>
             <if test="confirmStatus != null">#{confirmStatus},</if>
+            <if test="groupId != null">#{groupId},</if>
+            <if test="firmDeptId != null">#{firmDeptId},</if>
+            <if test="heshouStatus != null">#{heshouStatus},</if>
+            <if test="heshouDoctor != null">#{heshouDoctor},</if>
+            <if test="heshouTime != null">#{heshouTime},</if>
+            <if test="isHz != null">#{isHz},</if>
+            <if test="getType != null">#{getType},</if>
+            <if test="tjCategory != null">#{tjCategory},</if>
         </trim>
     </insert>
 
@@ -262,6 +286,14 @@
             <if test="confirmDoctor != null">confirm_doctor = #{confirmDoctor},</if>
             <if test="confirmTime != null">confirm_time = #{confirmTime},</if>
             <if test="confirmStatus != null">confirm_status = #{confirmStatus},</if>
+            <if test="groupId != null">group_id = #{groupId},</if>
+            <if test="firmDeptId != null">firm_dept_id = #{firmDeptId},</if>
+            <if test="heshouStatus != null">heshou_status = #{heshouStatus},</if>
+            <if test="heshouDoctor != null">heshou_doctor = #{heshouDoctor},</if>
+            <if test="heshouTime != null">heshou_time = #{heshouTime},</if>
+            <if test="isHz != null">is_hz = #{isHz},</if>
+            <if test="getType != null">get_type = #{getType},</if>
+            <if test="tjCategory != null">tj_category = #{tjCategory},</if>
         </trim>
         where order_id = #{orderId}
     </update>

--
Gitblit v1.8.0