From ddff387baa9c7c62e66bbe2723d2c40e4571ea51 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 15 十二月 2025 11:20:57 +0800
Subject: [PATCH] 【丽水】首次随访失败详情,首次应随访详情,首次待随访详情,首次随访成功详情,统计数字超链接,展示对应数据的任务信息

---
 smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index 5682971..f873005 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -513,8 +513,9 @@
     <select id="selectPatMedInhosp" parameterType="Long" resultMap="PatMedInhospResult">
         <include refid="selectPatMedInhospVo"/>
         where del_flag=0
-        <if test="cry != null and cry == 0 ">and endtime is null</if>
+        <if test="cry != null and cry == 0 ">and inhospstate=0</if>
         <if test="cry != null and cry == 1 ">and inhospstate=1</if>
+        <if test="cry != null and cry == 3 ">and inhospstate=3</if>
         <if test="serialnum != null">and serialnum = #{serialnum}</if>
         <if test="hospitalname != null">and hospitalname = #{hospitalname}</if>
         <if test="hospitalcode != null">and hospitalcode = #{hospitalcode}</if>

--
Gitblit v1.9.3