|
@@ -452,6 +452,9 @@
|
|
|
<if test="filterPageVO.name != null and filterPageVO.name != ''">
|
|
|
AND e.name like CONCAT('%', #{filterPageVO.name},'%')
|
|
|
</if>
|
|
|
+ <if test="filterPageVO.deptName != null and filterPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name like CONCAT('%', #{filterPageVO.deptName},'%')
|
|
|
+ </if>
|
|
|
GROUP BY
|
|
|
d.cases_id,
|
|
|
e.`name`
|
|
@@ -481,6 +484,9 @@
|
|
|
<if test="filterPageVO.endDate != null and filterPageVO.endDate != ''">
|
|
|
<![CDATA[AND a.leave_hospital_date < DATE(#{filterPageVO.endDate})]]>
|
|
|
</if>
|
|
|
+ <if test="filterPageVO.deptName != null and filterPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name like CONCAT('%', #{filterPageVO.deptName},'%')
|
|
|
+ </if>
|
|
|
) t2,
|
|
|
(
|
|
|
SELECT
|
|
@@ -552,6 +558,9 @@
|
|
|
<if test="filterPageVO.name != null and filterPageVO.name != ''">
|
|
|
AND d.name like CONCAT('%', #{filterPageVO.name},'%')
|
|
|
</if>
|
|
|
+ <if test="filterPageVO.deptName != null and filterPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name like CONCAT('%', #{filterPageVO.deptName},'%')
|
|
|
+ </if>
|
|
|
) t1,(
|
|
|
SELECT
|
|
|
count(*) AS totleNum
|
|
@@ -584,6 +593,9 @@
|
|
|
<if test="filterPageVO.name != null and filterPageVO.name != ''">
|
|
|
AND d.name like CONCAT('%', #{filterPageVO.name},'%')
|
|
|
</if>
|
|
|
+ <if test="filterPageVO.deptName != null and filterPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name like CONCAT('%', #{filterPageVO.deptName},'%')
|
|
|
+ </if>
|
|
|
) t2
|
|
|
GROUP BY
|
|
|
t1.id,
|