|
|
|
@ -4,15 +4,27 @@
|
|
|
|
|
|
|
|
|
|
<select id="getThreeDaysFileList" resultType="com.emr.vo.ThreeDaysFileVo">
|
|
|
|
|
SELECT COUNT
|
|
|
|
|
( * ) AS outNum,
|
|
|
|
|
dept_name as deptCode
|
|
|
|
|
( * ) AS outNum,
|
|
|
|
|
dept_name as deptCode
|
|
|
|
|
FROM
|
|
|
|
|
Archive_Master
|
|
|
|
|
Archive_Master
|
|
|
|
|
WHERE
|
|
|
|
|
ArchiveState NOT IN ( '作废', '已封存', '取消入院' ) AND id is not null AND dept_name is not null and id!=''
|
|
|
|
|
ArchiveState NOT IN ( '作废', '已封存', '取消入院' ) AND id is not null AND dept_name is not null and id!=''
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="startDateTo != null and startDateTo != '' and endDateTo != null and endDateTo != ''">
|
|
|
|
|
and CONVERT(VARCHAR(20),discharge_date_time,23) between #{startDateTo} and
|
|
|
|
|
#{endDateTo}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="startDateTo != null and startDateTo != ''">
|
|
|
|
|
and CONVERT(VARCHAR(20),discharge_date_time,23) >=#{startDateTo}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="endDateTo != null and endDateTo != ''">
|
|
|
|
|
and CONVERT(VARCHAR(20),discharge_date_time,23) <= #{endDateTo}
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
AND inp_no NOT LIKE 'LG%'
|
|
|
|
|
GROUP BY
|
|
|
|
|
dept_name
|
|
|
|
|
dept_name
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getDay3Rate" resultType="com.emr.vo.ThreeDaysFileVo">
|
|
|
|
|
SELECT
|
|
|
|
|