From 7913a655b4f017eea4e8f95e34232143f92ecaaf Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 21 三月 2025 18:22:08 +0800
Subject: [PATCH] 代码提交

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

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index 332b6ca..9a114e5 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -170,14 +170,14 @@
         b.deptid,
         b.leaveldeptid,
         b.long_task_reason,
-        b.schemetime,
-        COALESCE (
-        (
-        SELECT string_agg(d.tagname, ', ')
-        FROM pat_archivetag d
-        WHERE d.patid = a.id
-        AND d.del_flag = 0
-        ), '') AS tagname
+        b.schemetime
+        -- COALESCE (
+        -- (
+        -- SELECT GROUP_CONCAT(d.tagname, ', ')
+        -- FROM pat_archivetag d
+        -- WHERE d.patid = a.id
+        -- AND d.del_flag = 0
+        -- ), '') AS tagname
         FROM
         pat_med_inhosp b
         JOIN
@@ -359,6 +359,13 @@
         order by b.inhospid desc
     </select>
 
+    <select id="getTagnameBypatid" parameterType="Long" resultType="string">
+        SELECT GROUP_CONCAT(d.tagname, ', ')
+        FROM pat_archivetag d
+        WHERE d.patid = #{patid}
+          AND d.del_flag = 0
+    </select>
+
 
     <select id="selectPatMedInhospByInhospid" parameterType="Long" resultMap="PatMedInhospResult">
         <include refid="selectPatMedInhospVo"/>

--
Gitblit v1.9.3