From fe47ff909096722ba8e9172c3e1f0f7910b16909 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 21 十月 2025 14:49:18 +0800
Subject: [PATCH] 结束出院日期格式
---
smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
index 1ea6f47..ce7292e 100644
--- a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -519,6 +519,8 @@
</if>
</where>
order by a.update_time desc
+ <if test="pn != null and ps != null"> limit ${pn},${ps} </if>
+
</select>
@@ -659,6 +661,7 @@
</if>
</where>
order by a.update_time desc
+ <if test="pn != null and ps != null"> limit ${pn},${ps} </if>
</select>
<select id="selectPatArchiveInfoByOuthosp" parameterType="com.smartor.domain.PatArchiveReq"
@@ -749,6 +752,7 @@
</if>
</where>
order by a.update_time desc
+ <if test="pn != null and ps != null"> limit ${pn},${ps} </if>
</select>
<select id="selectPatArchiveInfoByPhysical" parameterType="com.smartor.domain.PatArchiveReq"
@@ -841,6 +845,7 @@
</if>
</where>
order by a.update_time desc
+ <if test="pn != null and ps != null"> limit ${pn},${ps} </if>
</select>
<select id="selectPatArchiveInfoByInhospQC" parameterType="com.smartor.domain.PatArchiveReq"
@@ -928,6 +933,12 @@
<if test="endtime != null">
AND d.endtime = #{endtime}
</if>
+ <if test="drname != null and drname != ''">
+ AND d.drname LIKE concat('%',#{drname}, '%')
+ </if>
+ <if test="drcode != null">
+ AND d.drcode = #{drcode}
+ </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 != ''">
@@ -979,6 +990,7 @@
</if>
</where>
order by a.id,a.update_time desc ) as tmp order by endtime desc
+ <if test="pn != null and ps != null"> limit ${pn},${ps} </if>
</select>
<select id="selectPatArchiveInfoByOuthospQC" parameterType="com.smartor.domain.PatArchiveReq"
@@ -1059,6 +1071,9 @@
<if test="drname != null and drname != ''">
AND d.drname LIKE concat('%',#{drname}, '%')
</if>
+ <if test="drcode != null">
+ AND d.drcode = #{drcode}
+ </if>
<if test="pids != null">
AND a.id NOT IN
<foreach collection="pids" item="pid" open="(" separator="," close=")">
--
Gitblit v1.9.3