|
@@ -379,7 +379,7 @@
|
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and t.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and t.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and CONCAT(
|
|
@@ -511,7 +511,7 @@
|
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and t.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and t.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
and t.name like CONCAT('%',#{name},'%')
|
|
@@ -2819,7 +2819,7 @@
|
|
|
AND e.user_id = #{userId}
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -2882,7 +2882,7 @@
|
|
|
AND f.user_id = #{userId}
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -2969,7 +2969,7 @@
|
|
|
AND e.user_id = #{userId}
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -3032,7 +3032,7 @@
|
|
|
AND f.user_id = #{userId}
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -3203,6 +3203,9 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
|
a.doctor_name
|
|
@@ -3273,6 +3276,9 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
|
a.doctor_name
|
|
@@ -3359,6 +3365,9 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
|
a.doctor_name
|
|
@@ -3843,7 +3852,7 @@
|
|
|
OR a.director_doctor_id like CONCAT('%',#{doctorCode},'%'))
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
@@ -3913,7 +3922,7 @@
|
|
|
OR a.director_doctor_id like CONCAT('%',#{doctorCode},'%'))
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
@@ -4077,6 +4086,9 @@
|
|
|
<if test="deptId != null and deptId != ''">
|
|
|
AND a.beh_dept_id = #{deptId}
|
|
|
</if>
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
|
</if>
|
|
@@ -4151,6 +4163,9 @@
|
|
|
<if test="deptId != null and deptId != ''">
|
|
|
AND a.beh_dept_id = #{deptId}
|
|
|
</if>
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.name like CONCAT('%',#{name},'%')
|
|
|
</if>
|
|
@@ -4810,7 +4825,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -5602,8 +5617,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
) c
|
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
@@ -5681,8 +5699,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
) d
|
|
|
LEFT JOIN med_qcresult_detail e ON e.is_deleted = 'N'
|
|
@@ -5756,8 +5777,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
) c
|
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
@@ -5831,8 +5855,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
) b
|
|
|
LEFT JOIN med_qcresult_detail c ON c.is_deleted = 'N'
|
|
@@ -5906,8 +5933,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
) b
|
|
|
GROUP BY
|
|
@@ -6717,7 +6747,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -7382,7 +7412,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
@@ -7443,7 +7473,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
@@ -7503,7 +7533,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
@@ -7574,7 +7604,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and m1.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and m1.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
m1.behospital_code
|
|
@@ -7626,7 +7656,7 @@
|
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -8355,7 +8385,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -8597,7 +8627,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -8854,7 +8884,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
@@ -9125,7 +9155,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -9978,6 +10008,9 @@
|
|
|
<if test="filterVO.userId!=null">
|
|
|
AND f.user_id = #{filterVO.userId}
|
|
|
</if>
|
|
|
+ <if test="filterVO.name != null and filterVO.name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{filterVO.name}, '%')
|
|
|
+ </if>
|
|
|
<if test="filterVO.isPlacefile != null and filterVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{filterVO.isPlacefile}
|
|
|
</if>
|
|
@@ -10001,7 +10034,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
|
|
|
+ AND a.beh_dept_name = #{filterVO.deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -10068,6 +10101,9 @@
|
|
|
<if test="filterVO.hospitalId != null and filterVO.hospitalId != ''">
|
|
|
AND a.hospital_id = #{filterVO.hospitalId}
|
|
|
</if>
|
|
|
+ <if test="filterVO.name != null and filterVO.name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{filterVO.name}, '%')
|
|
|
+ </if>
|
|
|
<if test="filterVO.isPlacefile != null and filterVO.isPlacefile == 0">
|
|
|
<if test="filterVO.startDate != null ">
|
|
|
<![CDATA[ AND a.behospital_date >= #{filterVO.startDate}]]>
|
|
@@ -10085,7 +10121,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
|
|
|
+ AND a.beh_dept_name = #{filterVO.deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -10376,8 +10412,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="filterVO.name != null and filterVO.name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{filterVO.name}, '%')
|
|
|
+ </if>
|
|
|
<if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
|
|
|
+ AND a.beh_dept_name = #{filterVO.deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -10460,8 +10499,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="filterVO.name != null and filterVO.name != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{filterVO.name}, '%')
|
|
|
+ </if>
|
|
|
<if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
|
|
|
+ AND a.beh_dept_name = #{filterVO.deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.beh_dept_id,
|
|
@@ -10587,7 +10629,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="deptName != null and deptName != ''">
|
|
|
- AND a.beh_dept_name like CONCAT('%', #{deptName}, '%')
|
|
|
+ AND a.beh_dept_name= #{deptName}qcCheckStatisticsByDept
|
|
|
</if>
|
|
|
<if test="casesEntryIds != null and casesEntryIds.size()>0">
|
|
|
AND c.cases_entry_id IN
|
|
@@ -10712,7 +10754,7 @@
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
- and a.doctor_name = #{doctorName}
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
</if>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -10814,7 +10856,7 @@
|
|
|
and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
- and a.doctor_name = #{doctorName}
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
</if>
|
|
|
<if test="deptClass != null and deptClass != ''">
|
|
|
and a.beh_dept_id = #{deptClass}
|
|
@@ -11475,8 +11517,7 @@
|
|
|
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}, '%' )
|
|
|
-
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -12175,7 +12216,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- and a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
+ AND a.doctor_name like CONCAT('%', #{qcResultShortPageVO.doctorName}, '%')
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
@@ -13144,7 +13185,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -13366,7 +13407,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -15013,7 +15054,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -15791,7 +15832,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
- AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.deptName}, '%')
|
|
|
+ AND m1.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
m1.behospital_code
|
|
@@ -16050,7 +16091,7 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
- AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.deptName}, '%')
|
|
|
+ AND m1.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
m1.behospital_code
|
|
@@ -16759,8 +16800,7 @@
|
|
|
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}, '%' )
|
|
|
-
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
@@ -16955,8 +16995,7 @@
|
|
|
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}, '%' )
|
|
|
-
|
|
|
+ AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|