From f2162e182405184e14bfa8d628150ccc49318fc3 Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期一, 19 五月 2025 17:11:54 +0800 Subject: [PATCH] 总检页面增加体检类型搜索调整了存储过程 --- ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml | 193 +++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 180 insertions(+), 13 deletions(-) diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml index ce187ce..8fce5c6 100644 --- a/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml +++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjOrderMapper.xml @@ -36,6 +36,13 @@ <result property="confirmDoctor" column="confirm_doctor"/> <result property="confirmTime" column="confirm_time"/> <result property="confirmStatus" column="confirm_status"/> + <result property="zhiyeJhgln" column="zhiye_jhgln"/> + <result property="zhiyeJhgly" column="zhiye_jhgly"/> + <result property="zhiyeKsjhrq" column="zhiye_ksjhrq"/> + <result property="zhiyeGh" column="zhiye_gh"/> + <result property="zhiyeCj" column="zhiye_cj"/> + <result property="zhiyeJl" column="zhiye_jl"/> + <result property="zhiyeJg" column="zhiye_jg"/> </resultMap> <sql id="selectTjOrderVo"> @@ -69,7 +76,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,zhiye_jhgln,zhiye_jhgly,zhiye_ksjhrq,zhiye_gh,zhiye_cj,zhiye_jl,zhiye_jg from tj_order </sql> @@ -77,9 +92,9 @@ <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</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 @@ -91,7 +106,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 +119,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 +132,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 +208,21 @@ <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> + <if test="zhiyeJhgln != null">zhiye_jhgln,</if> + <if test="zhiyeJhgly != null">zhiye_jhgly,</if> + <if test="zhiyeKsjhrq != null">zhiye_ksjhrq,</if> + <if test="zhiyeGh != null">zhiye_gh,</if> + <if test="zhiyeCj != null">zhiye_cj,</if> + <if test="zhiyeJl != null">zhiye_jl,</if> + <if test="zhiyeJg != null">zhiye_jg,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="userId != null">#{userId},</if> @@ -225,6 +255,21 @@ <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> + <if test="zhiyeJhgln != null">#{zhiyeJhgln},</if> + <if test="zhiyeJhgly != null">#{zhiyeJhgly},</if> + <if test="zhiyeKsjhrq != null">#{zhiyeKsjhrq},</if> + <if test="zhiyeGh != null">#{zhiyeGh},</if> + <if test="zhiyeCj != null">#{zhiyeCj},</if> + <if test="zhiyeJl != null">#{zhiyeJl},</if> + <if test="zhiyeJg != null">#{zhiyeJg},</if> </trim> </insert> @@ -262,6 +307,21 @@ <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> + <if test="zhiyeJhgln != null">zhiye_jhgln = #{zhiyeJhgln},</if> + <if test="zhiyeJhgly != null">zhiye_jhgly = #{zhiyeJhgly},</if> + <if test="zhiyeKsjhrq != null">zhiye_ksjhrq = #{zhiyeKsjhrq},</if> + <if test="zhiyeGh != null">zhiye_gh = #{zhiyeGh},</if> + <if test="zhiyeCj != null">zhiye_cj = #{zhiyeCj},</if> + <if test="zhiyeJl != null">zhiye_jl = #{zhiyeJl},</if> + <if test="zhiyeJg != null">zhiye_jg = #{zhiyeJg},</if> </trim> where order_id = #{orderId} </update> @@ -281,15 +341,122 @@ </delete> - <select id="getOrderList" parameterType="java.lang.Long" resultMap="TjOrderResult"> - select * - from tj_order - where 1 = 1 - and user_id = #{cusId} - </select> +<!-- <select id="getOrderList" parameterType="java.lang.Long" resultMap="TjOrderResult">--> +<!-- select *--> +<!-- from tj_order--> +<!-- where 1 = 1--> +<!-- and user_id = #{cusId}--> +<!-- </select>--> <select id="getOrderList1" parameterType="Integer" resultMap="TjOrderResult"> {call sel_tjorder()} </select> + + + <select id="getCunChuGuoChengCustomerList" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_check_list( + #{checkStatus,mode=IN,jdbcType=INTEGER}, + #{page,mode=IN,jdbcType=INTEGER}, + #{pageSize,mode=IN,jdbcType=INTEGER}, + #{tjNumber,mode=IN,jdbcType=VARCHAR}, + #{compId,mode=IN,jdbcType=VARCHAR}, + #{tjname,mode=IN,jdbcType=VARCHAR}, + #{beginTime,mode=IN,jdbcType=VARCHAR}, + #{endTime,mode=IN,jdbcType=VARCHAR}, + #{p_tjCategory,mode=IN,jdbcType=VARCHAR}, + #{total,mode=OUT,jdbcType=INTEGER} + )} + </select> + + + <select id="getCsCunChuGuoChengCustomerList" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_cs_check_list( + #{checkStatus,mode=IN,jdbcType=INTEGER}, + #{page,mode=IN,jdbcType=INTEGER}, + #{pageSize,mode=IN,jdbcType=INTEGER}, + #{tjNumber,mode=IN,jdbcType=VARCHAR}, + #{compId,mode=IN,jdbcType=VARCHAR}, + #{tjname,mode=IN,jdbcType=VARCHAR}, + #{beginTime,mode=IN,jdbcType=VARCHAR}, + #{endTime,mode=IN,jdbcType=VARCHAR}, + #{tcm,mode=IN,jdbcType=VARCHAR}, + #{total,mode=OUT,jdbcType=INTEGER} + )} + </select> + + + <select id="getSuiFangTongYiMoBanJieKou" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_PRO_ltkjreport( + #{checkStatus,mode=IN,jdbcType=INTEGER}, + #{page,mode=IN,jdbcType=INTEGER}, + #{pageSize,mode=IN,jdbcType=INTEGER}, + #{tjNumber,mode=IN,jdbcType=VARCHAR}, + #{compId,mode=IN,jdbcType=VARCHAR}, + #{tjname,mode=IN,jdbcType=VARCHAR}, + #{beginTime,mode=IN,jdbcType=VARCHAR}, + #{endTime,mode=IN,jdbcType=VARCHAR}, + #{total,mode=OUT,jdbcType=INTEGER} + )} + </select> + + + <select id="getgetBghsList" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_bghs_list( + #{page,mode=IN,jdbcType=INTEGER}, + #{pageSize,mode=IN,jdbcType=INTEGER}, + #{tjNumber,mode=IN,jdbcType=VARCHAR}, + #{compId,mode=IN,jdbcType=VARCHAR}, + #{tjname,mode=IN,jdbcType=VARCHAR}, + #{beginTime,mode=IN,jdbcType=VARCHAR}, + #{endTime,mode=IN,jdbcType=VARCHAR}, + #{total,mode=OUT,jdbcType=INTEGER} + )} + </select> + <select id="tjQiandaodengji" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_qiandaodengji( + #{tjNum,mode=IN,jdbcType=VARCHAR} + )} + </select> + <select id="tjLispacstongbujianyi" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_lispacstongbujianyi( + #{tjNum,mode=IN,jdbcType=VARCHAR}, + #{ksId,mode=IN,jdbcType=VARCHAR}, + #{ysxm,mode=IN,jdbcType=VARCHAR}, + #{ysid,mode=IN,jdbcType=VARCHAR} )} + </select> + + + <select id="getTjBgdyList" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_bgdy_list( + #{page,mode=IN,jdbcType=VARCHAR}, + #{pageSize,mode=IN,jdbcType=VARCHAR}, + #{dyzt,mode=IN,jdbcType=VARCHAR}, + #{tjNumber,mode=IN,jdbcType=VARCHAR}, + #{dw,mode=IN,jdbcType=VARCHAR}, + #{tjname,mode=IN,jdbcType=VARCHAR}, + #{beginTime,mode=IN,jdbcType=VARCHAR}, + #{endTime,mode=IN,jdbcType=VARCHAR}, + #{total,mode=OUT,jdbcType=INTEGER} + )} + </select> + + + + <select id="getYxJcList" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map"> + {call tj_xdtgmd_list( + #{checkStatus,mode=IN,jdbcType=INTEGER}, + #{page,mode=IN,jdbcType=INTEGER}, + #{pageSize,mode=IN,jdbcType=INTEGER}, + #{tjNumber,mode=IN,jdbcType=VARCHAR}, + #{compId,mode=IN,jdbcType=VARCHAR}, + #{tjname,mode=IN,jdbcType=VARCHAR}, + #{beginTime,mode=IN,jdbcType=VARCHAR}, + #{endTime,mode=IN,jdbcType=VARCHAR}, + #{tcm,mode=IN,jdbcType=VARCHAR}, + #{ks,mode=IN,jdbcType=VARCHAR}, + #{total,mode=OUT,jdbcType=INTEGER} + )} + </select> + </mapper> -- Gitblit v1.8.0