|
@@ -72,8 +72,8 @@
|
|
|
<if test="diagnose != null and diagnose != ''">
|
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and t.beh_dept_id = #{deptId}
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and t.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and CONCAT(
|
|
@@ -378,8 +378,8 @@
|
|
|
<if test="diagnose != null and diagnose != ''">
|
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and t.beh_dept_id = #{deptId}
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and t.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and CONCAT(
|
|
@@ -510,8 +510,8 @@
|
|
|
<if test="diagnose != null and diagnose != ''">
|
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and t.beh_dept_id = #{deptId}
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and t.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
and t.name like CONCAT('%',#{name},'%')
|
|
@@ -1418,8 +1418,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -1472,8 +1472,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -1549,8 +1549,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -1603,8 +1603,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -1781,8 +1781,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
<if test="deptClass != null and deptClass != ''">
|
|
|
and e.dept_name = #{deptClass}
|
|
@@ -1850,8 +1850,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
<if test="deptClass != null and deptClass != ''">
|
|
|
and g.dept_name = #{deptClass}
|
|
@@ -2034,8 +2034,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) tt1
|
|
|
LEFT JOIN bas_dept_info e ON tt1.parentDeptId = e.dept_id
|
|
@@ -2111,8 +2111,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) tt2
|
|
|
LEFT JOIN bas_dept_info g ON tt2.parentDeptId = g.dept_id
|
|
@@ -2215,8 +2215,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) tt1
|
|
|
LEFT JOIN bas_dept_info e ON tt1.parentDeptId = e.dept_id
|
|
@@ -2292,8 +2292,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) tt2
|
|
|
LEFT JOIN bas_dept_info g ON tt2.parentDeptId = g.dept_id
|
|
@@ -2458,8 +2458,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -2514,8 +2514,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and c.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -2585,8 +2585,8 @@
|
|
|
<if test="level != null and level != ''">
|
|
|
and b.level = #{level}
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{name},'%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -3335,8 +3335,8 @@
|
|
|
OR a.beh_doctor_id like CONCAT('%',#{doctorCode},'%')
|
|
|
OR a.director_doctor_id like CONCAT('%',#{doctorCode},'%'))
|
|
|
</if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- AND a.beh_dept_id = #{deptId}
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
@@ -3393,8 +3393,8 @@
|
|
|
OR a.beh_doctor_id like CONCAT('%',#{doctorCode},'%')
|
|
|
OR a.director_doctor_id like CONCAT('%',#{doctorCode},'%'))
|
|
|
</if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- AND a.beh_dept_id = #{deptId}
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
@@ -3547,8 +3547,8 @@
|
|
|
OR a.beh_doctor_id like CONCAT('%',#{doctorCode},'%')
|
|
|
OR a.director_doctor_id like CONCAT('%',#{doctorCode},'%'))
|
|
|
</if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- AND a.beh_dept_id = #{deptId}
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
@@ -3617,8 +3617,8 @@
|
|
|
OR a.beh_doctor_id like CONCAT('%',#{doctorCode},'%')
|
|
|
OR a.director_doctor_id like CONCAT('%',#{doctorCode},'%'))
|
|
|
</if>
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- AND a.beh_dept_id = #{deptId}
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
@@ -4018,8 +4018,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -4492,7 +4492,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name = #{deptName}
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) c
|
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
@@ -4560,7 +4560,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name = #{deptName}
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) d
|
|
|
LEFT JOIN med_qcresult_detail e ON e.is_deleted = 'N'
|
|
@@ -4624,7 +4624,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name = #{deptName}
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) c
|
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
@@ -4688,7 +4688,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name = #{deptName}
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) b
|
|
|
LEFT JOIN med_qcresult_detail c ON c.is_deleted = 'N'
|
|
@@ -4752,7 +4752,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name = #{deptName}
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
) b
|
|
|
GROUP BY
|
|
@@ -5320,8 +5320,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -5652,8 +5652,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{name}, '%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -5701,8 +5701,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{name}, '%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -5748,8 +5748,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{name}, '%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -5813,8 +5813,8 @@
|
|
|
<![CDATA[ AND m1.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- AND m1.beh_dept_name like CONCAT('%', #{name}, '%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and m1.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
m1.behospital_code
|
|
@@ -5856,8 +5856,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{name}, '%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -6062,8 +6062,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -6293,8 +6293,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -6542,8 +6542,9 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
+
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -6810,8 +6811,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -7039,8 +7040,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="filterVO.name != null and filterVO.name != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{filterVO.name}, '%')
|
|
|
+ <if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -7185,8 +7186,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="filterVO.name != null and filterVO.name != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{filterVO.name}, '%')
|
|
|
+ <if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -7239,8 +7240,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{name}, '%')
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ AND a.beh_dept_name like CONCAT('%', #{deptName}, '%')
|
|
|
</if>
|
|
|
<if test="casesEntryIds != null and casesEntryIds.size()>0">
|
|
|
AND c.cases_entry_id IN
|
|
@@ -7372,8 +7373,8 @@
|
|
|
<if test="qcResultPageVO.diagnose != null and qcResultPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultPageVO.behDeptName != null and qcResultPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultPageVO.behDeptName}
|
|
|
+ <if test="qcResultPageVO.deptName != null and qcResultPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultPageVO.behospitalCode != null and qcResultPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultPageVO.behospitalCode}, '%' )
|
|
@@ -7472,10 +7473,9 @@
|
|
|
<if test="qcResultPageVO.diagnose != null and qcResultPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultPageVO.behDeptName != null and qcResultPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultPageVO.behDeptName}
|
|
|
+ <if test="qcResultPageVO.deptName != null and qcResultPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
-
|
|
|
<if test="qcResultPageVO.behospitalCode != null and qcResultPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
@@ -7640,8 +7640,9 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
+
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -7879,8 +7880,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -8100,8 +8101,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -8343,8 +8344,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -8556,8 +8557,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -9126,8 +9127,8 @@
|
|
|
<![CDATA[ AND m1.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.behDeptName}, '%')
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.deptName}, '%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
m1.behospital_code
|
|
@@ -9173,8 +9174,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
@@ -9354,8 +9355,8 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
@@ -9584,8 +9585,8 @@
|
|
|
<![CDATA[ AND m1.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.behDeptName}, '%')
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.deptName}, '%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
m1.behospital_code
|
|
@@ -9631,8 +9632,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
@@ -9832,8 +9833,8 @@
|
|
|
<![CDATA[ AND m1.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.behDeptName}, '%')
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.deptName}, '%')
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
m1.behospital_code
|
|
@@ -9879,8 +9880,8 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
@@ -10107,8 +10108,9 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
+
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
@@ -10291,8 +10293,9 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
+ <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
+ AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
+
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|