From 6935135cee4cf8116d750f892582ae571e329ac7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 19 六月 2025 20:13:14 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
index 6b2edb7..7d6c976 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
@@ -35,6 +35,7 @@
<result property="guid" column="guid"/>
<result property="patno" column="patno"/>
<result property="diagcheckFlag" column="diagcheck_flag"/>
+ <result property="idcardno" column="idcardno"/>
<result property="remark" column="remark"/>
</resultMap>
@@ -108,7 +109,8 @@
pmo.patname,
CONCAT(pa.age,pa.age_unit,pa.age2,pa.age_unit2) AS age,
pa.telcode,
- pmo.mainsuit
+ pmo.mainsuit,
+ pa.idcardno
from pat_med_outhosp pmo left join pat_archive pa on pmo.patid = pa.id
<where>
pmo.del_flag=0
@@ -277,7 +279,24 @@
del_flag=0
and date_format(admitdate,'%y%m%d') >= date_format(#{startDate},'%y%m%d')
and date_format(admitdate,'%y%m%d') <= date_format(#{endDate},'%y%m%d')
- <if test="deptcodeList != null">
+ <if test="deptcodeList != null and deptcodeList.size()>0">
+ and deptcode in
+ <foreach collection="deptcodeList" item="deptcode" open="(" separator="," close=")">
+ #{deptcode}
+ </foreach>
+ </if>
+ </where>
+ </select>
+
+ <select id="getDeptRanking" parameterType="com.smartor.domain.PatMedReq" resultType="com.smartor.domain.PatMedRes">
+ SELECT deptname, COUNT(1) AS rc
+ FROM pat_med_outhosp
+ <where>
+ del_flag=0
+ <if test="inhospstate != inhospstate">
+ and inhospstate= #{inhospstate}
+ </if>
+ <if test="deptcodeList != null and deptcodeList.size()>0">
and deptcode in
<foreach collection="deptcodeList" item="deptcode" open="(" separator="," close=")">
#{deptcode}
--
Gitblit v1.9.3