From cfbd93a77796c4b4eb7f476addc6fe888908bd22 Mon Sep 17 00:00:00 2001 From: zhs <zhs18203887318@163.com> Date: 星期三, 25 六月 2025 11:33:25 +0800 Subject: [PATCH] 06-25 zhs --- smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml index 49759c8..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" -- Gitblit v1.9.3