From 76fb5d8b5249d74a77ca3e44ca9cf98b57b31ace Mon Sep 17 00:00:00 2001 From: zhs <zhs18203887318@163.com> Date: 星期五, 30 五月 2025 14:00:32 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml index 04266b6..0314b0c 100644 --- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml @@ -294,7 +294,12 @@ a.telcode, a.id, a.sex - order by b.inhospid desc + <if test="cry==1"> + order by b.endtime desc + </if> + <if test="cry==0"> + order by b.starttime desc + </if> </select> <select id="selectPatMedInhospListByCondition" parameterType="com.smartor.domain.PatMedInhospVO" resultMap="PatMedInhospResult"> -- Gitblit v1.9.3