From d3bf339bd64d7b7efddc0afdd4beb1866b8b5a04 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期六, 21 九月 2024 00:47:55 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml index d305d95..766679f 100644 --- a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml @@ -99,6 +99,8 @@ <result property="inhospno" column="inhospno"/> <result property="nurseId" column="nurse_id"/> <result property="nurseName" column="nurse_name"/> + <result property="outWayName" column="out_way_name"/> + <result property="outWayId" column="out_way_id"/> <result property="leavehospitaldistrictname" column="leavehospitaldistrictname"/> <result property="leavehospitaldistrictcode" column="leavehospitaldistrictcode"/> </resultMap> @@ -292,7 +294,6 @@ (#{item.name},#{item.viptype},#{item.sex},#{item.idcardno},#{item.birthdate},#{item.placeOfResidence},#{item.age},#{item.sourcefrom},#{item.archivetime},#{item.archiveby} ,#{item.telcode},#{item.archiveby},#{item.idcardtype},#{item.orgid},#{item.openid},#{item.dduserid},#{item.updateBy}, #{item.updateTime},#{item.createBy},#{item.createTime},#{item.isupload},#{item.uploadTime},#{item.pattype},#{item.nation},#{item.birthplace},#{item.nativePlace},#{item.patientno},#{item.patidHis},#{item.sdFlag},#{item.ageUnit},#{item.notrequiredFlag},#{item.notrequiredreason} - ) </foreach> </insert> @@ -391,6 +392,8 @@ a.del_flag = 0 <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> + <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} + </if> <if test="pid != null and pid != ''">and a.id = #{pid}</if> <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> <if test="tagIds != null and tagIds != ''">and b.tagid in @@ -452,6 +455,7 @@ d.nurse_name, d.nurse_id, d.endtime, + d.out_way_id, d.leavehospitaldistrictname AS leavehospitaldistrictname, d.leavehospitaldistrictcode AS leavehospitaldistrictcode, t.tagname @@ -467,7 +471,8 @@ <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> <if test="pid != null and pid != ''">and a.id = #{id}</if> <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> - + <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} + </if> <if test="hospitalname != null and hospitalname != ''"> AND d.hospitalname = #{hospitalname} </if> @@ -496,14 +501,14 @@ AND d.deptname LIKE concat('%',#{deptname}, '%') </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes != null"> - AND d.leavehospitaldistrictcode IN + AND (d.leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> OR d.leaveldeptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," - close=")"> + close="))"> #{leaveldeptcode} </foreach> </if> @@ -589,6 +594,8 @@ <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> <if test="hospitaldistrictname != null and hospitaldistrictname != ''"> AND d.hospitaldistrictname LIKE concat('%',#{hospitaldistrictname}, '%') + </if> + <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} </if> <if test="diagname != null and diagname != ''"> AND d.diagname LIKE concat('%',#{diagname}, '%') @@ -678,6 +685,8 @@ <if test="diagname != null and diagname != ''"> AND d.diagname LIKE concat('%',#{diagname}, '%') </if> + <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} + </if> <if test="hospitalname != null and hospitalname != ''"> AND d.hospitalname = #{hospitalname} </if> -- Gitblit v1.9.3