From 4bb2588c5579d43ae5d343c7343a425a80b02d6c Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期五, 27 六月 2025 12:12:42 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml index 80a2175..ba9a75e 100644 --- a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml @@ -891,6 +891,8 @@ <if test="endtime != null"> AND d.endtime = #{endtime} </if> + <if test="cry != null and cry == 0 ">and d.endtime is null</if> + <if test="cry != null and cry == 1 ">and d.endtime is not null</if> <if test="visitno != null and visitno != ''"> AND d.inhospno = #{visitno} </if> @@ -924,6 +926,7 @@ AND NOT exists ( SELECT 1 FROM pat_filterlist f where d.patid=f.patid) </if> </where> + order by a.id,a.update_time desc ) order by endtime desc </select> <select id="selectPatArchiveInfoByOuthospQC" parameterType="com.smartor.domain.PatArchiveReq" @@ -950,8 +953,8 @@ a.place_of_residence, a.birthplace, a.birthdate, - a.icd10code as leaveicd10code, - a.diagname as leavediagname, +-- a.icd10code as leaveicd10code, +-- a.diagname as leavediagname, a.age, a.age2, a.viptype, -- Gitblit v1.9.3