|
@@ -69,8 +69,11 @@
|
|
|
ON t.behospital_code = h.behospital_code
|
|
|
AND t.hospital_id = h.hospital_id
|
|
|
where t.is_deleted = 'N'
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and t.beh_dept_id = #{deptId}
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and t.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and CONCAT(
|
|
@@ -372,8 +375,11 @@
|
|
|
ON t.behospital_code = h.behospital_code
|
|
|
AND t.hospital_id = h.hospital_id
|
|
|
where t.is_deleted = 'N'
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and t.beh_dept_id = #{deptId}
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and t.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and CONCAT(
|
|
@@ -501,8 +507,11 @@
|
|
|
ON t.behospital_code = h.behospital_code
|
|
|
AND t.hospital_id = h.hospital_id
|
|
|
WHERE t.is_deleted = 'N'
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and t.beh_dept_id = #{deptId}
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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},'%')
|
|
@@ -602,8 +611,8 @@
|
|
|
and c1.id = #{userId}
|
|
|
)
|
|
|
)
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- and t.beh_dept_id = #{deptId}
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and (t.doctor_name like CONCAT('%',#{doctorName},'%')
|
|
@@ -1406,8 +1415,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,
|
|
@@ -1460,8 +1469,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,
|
|
@@ -1537,8 +1546,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,
|
|
@@ -1591,8 +1600,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,
|
|
@@ -1769,8 +1778,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}
|
|
@@ -1838,8 +1847,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}
|
|
@@ -2022,8 +2031,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
|
|
@@ -2099,8 +2108,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
|
|
@@ -2203,8 +2212,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
|
|
@@ -2280,8 +2289,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
|
|
@@ -2446,8 +2455,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,
|
|
@@ -2502,8 +2511,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,
|
|
@@ -2573,8 +2582,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,
|
|
@@ -3292,6 +3301,9 @@
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
<if test="behosDateStart != null">
|
|
|
<![CDATA[ and a.behospital_date >= #{behosDateStart}]]>
|
|
|
</if>
|
|
@@ -3320,8 +3332,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},'%')
|
|
@@ -3347,6 +3359,9 @@
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
<if test="behosDateStart != null">
|
|
|
<![CDATA[ and a.behospital_date >= #{behosDateStart}]]>
|
|
|
</if>
|
|
@@ -3375,8 +3390,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},'%')
|
|
@@ -3451,7 +3466,7 @@
|
|
|
t1.leaveHospitalDate,
|
|
|
t1.score,
|
|
|
t2.avgScore,
|
|
|
- t1.scoreBn,
|
|
|
+ e.score_res as scoreBn,
|
|
|
t1.msg,
|
|
|
t1.caseName
|
|
|
FROM
|
|
@@ -3464,7 +3479,6 @@
|
|
|
a.behospital_date AS behospitalDate,
|
|
|
a.leave_hospital_date AS leaveHospitalDate,
|
|
|
b.score_res AS score,
|
|
|
- e.score_res as scoreBn,
|
|
|
c.msg AS msg,
|
|
|
d.NAME AS caseName,
|
|
|
a.beh_dept_id AS behDeptId,
|
|
@@ -3489,6 +3503,9 @@
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_id = d.id
|
|
|
AND a.beh_dept_id = e.dept_id
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
@@ -3527,8 +3544,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},'%')
|
|
@@ -3556,6 +3573,9 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.beh_dept_id = c.dept_id
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
@@ -3594,8 +3614,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},'%')
|
|
@@ -3670,6 +3690,7 @@
|
|
|
t1.leaveHospitalDate,
|
|
|
t1.score,
|
|
|
t2.avgScore,
|
|
|
+ e.score_res as scoreBn,
|
|
|
t1.msg,
|
|
|
t1.caseName
|
|
|
FROM
|
|
@@ -3718,6 +3739,9 @@
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
<if test="behosDateStart != null">
|
|
|
<![CDATA[ and a.behospital_date >= #{behosDateStart}]]>
|
|
|
</if>
|
|
@@ -3752,7 +3776,11 @@
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
|
</if>
|
|
|
- ) t1,
|
|
|
+ ) t1 LEFT JOIN med_qcresult_cases e
|
|
|
+ on t1.behospitalCode = e.behospital_code
|
|
|
+ and t1.hospital_id = e.hospital_id
|
|
|
+ AND e.is_deleted = 'N'
|
|
|
+ and e.cases_id = 243,
|
|
|
(
|
|
|
SELECT
|
|
|
ROUND( AVG( b.score_res ), 2 ) AS avgScore,
|
|
@@ -3776,6 +3804,9 @@
|
|
|
AND b.is_deleted = 'N'
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
+ <if test="diagnose != null and diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
+ </if>
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
@@ -3981,8 +4012,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -4455,7 +4489,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'
|
|
@@ -4523,7 +4557,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'
|
|
@@ -4587,7 +4621,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'
|
|
@@ -4651,7 +4685,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'
|
|
@@ -4715,7 +4749,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
|
|
@@ -5280,8 +5314,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}, '%' )
|
|
@@ -5612,8 +5649,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,
|
|
@@ -5661,8 +5698,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,
|
|
@@ -5708,8 +5745,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,
|
|
@@ -5773,8 +5810,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
|
|
@@ -5816,8 +5853,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,
|
|
@@ -6019,8 +6056,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}, '%' )
|
|
@@ -6247,8 +6287,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}, '%' )
|
|
@@ -6493,8 +6536,12 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -6758,8 +6805,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -6987,8 +7037,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,
|
|
@@ -7133,8 +7183,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,
|
|
@@ -7187,8 +7237,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
|
|
@@ -7317,10 +7367,12 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{qcResultPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultPageVO.behDeptName != null and qcResultPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultPageVO.behDeptName}
|
|
|
+ <if test="qcResultPageVO.diagnose != null and qcResultPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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>
|
|
@@ -7415,10 +7467,12 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{qcResultPageVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultPageVO.behDeptName != null and qcResultPageVO.behDeptName != ''">
|
|
|
- AND a.beh_dept_name = #{qcResultPageVO.behDeptName}
|
|
|
+ <if test="qcResultPageVO.diagnose != null and qcResultPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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>
|
|
@@ -7580,8 +7634,12 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -7816,8 +7874,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}, '%' )
|
|
@@ -8034,8 +8095,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}, '%' )
|
|
@@ -8274,8 +8338,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -8484,8 +8551,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -9054,8 +9124,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
|
|
@@ -9101,8 +9171,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}
|
|
@@ -9279,8 +9349,11 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -9509,8 +9582,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
|
|
@@ -9556,8 +9629,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}
|
|
@@ -9757,8 +9830,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
|
|
@@ -9804,8 +9877,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}
|
|
@@ -10029,8 +10102,12 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|
|
@@ -10210,8 +10287,12 @@
|
|
|
<![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.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
+ AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
+ </if>
|
|
|
+ <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}
|