|
@@ -2819,7 +2819,7 @@
|
|
AND e.user_id = #{userId}
|
|
AND e.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
@@ -2882,7 +2882,7 @@
|
|
AND f.user_id = #{userId}
|
|
AND f.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
@@ -2969,7 +2969,7 @@
|
|
AND e.user_id = #{userId}
|
|
AND e.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
@@ -3032,7 +3032,7 @@
|
|
AND f.user_id = #{userId}
|
|
AND f.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name like CONCAT('%',#{deptName},'%')
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
@@ -3203,6 +3203,9 @@
|
|
<if test="deptName!=null and deptName !=''">
|
|
<if test="deptName!=null and deptName !=''">
|
|
AND a.beh_dept_name = #{deptName}
|
|
AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
a.doctor_name
|
|
a.doctor_name
|
|
@@ -3273,6 +3276,9 @@
|
|
<if test="deptName!=null and deptName !=''">
|
|
<if test="deptName!=null and deptName !=''">
|
|
AND a.beh_dept_name = #{deptName}
|
|
AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
a.doctor_name
|
|
a.doctor_name
|
|
@@ -3359,6 +3365,9 @@
|
|
<if test="deptName!=null and deptName !=''">
|
|
<if test="deptName!=null and deptName !=''">
|
|
AND a.beh_dept_name = #{deptName}
|
|
AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
a.doctor_name
|
|
a.doctor_name
|
|
@@ -4810,7 +4819,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -5602,8 +5611,11 @@
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
) c
|
|
) c
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
@@ -5681,8 +5693,11 @@
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
) d
|
|
) d
|
|
LEFT JOIN med_qcresult_detail e ON e.is_deleted = 'N'
|
|
LEFT JOIN med_qcresult_detail e ON e.is_deleted = 'N'
|
|
@@ -5756,8 +5771,11 @@
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
) c
|
|
) c
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
|
|
@@ -5831,8 +5849,11 @@
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
) b
|
|
) b
|
|
LEFT JOIN med_qcresult_detail c ON c.is_deleted = 'N'
|
|
LEFT JOIN med_qcresult_detail c ON c.is_deleted = 'N'
|
|
@@ -5906,8 +5927,11 @@
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
|
+ </if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ AND a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
) b
|
|
) b
|
|
GROUP BY
|
|
GROUP BY
|
|
@@ -6717,7 +6741,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -7382,7 +7406,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
<if test="doctorName != null and doctorName != ''">
|
|
<if test="doctorName != null and doctorName != ''">
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
@@ -7443,7 +7467,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
<if test="doctorName != null and doctorName != ''">
|
|
<if test="doctorName != null and doctorName != ''">
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
@@ -7503,7 +7527,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
<if test="doctorName != null and doctorName != ''">
|
|
<if test="doctorName != null and doctorName != ''">
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
@@ -7574,7 +7598,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and m1.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ and m1.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
m1.behospital_code
|
|
m1.behospital_code
|
|
@@ -7626,7 +7650,7 @@
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
|
|
|
|
|
|
+ and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.doctor_id,
|
|
a.doctor_id,
|
|
@@ -8355,7 +8379,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -8597,7 +8621,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
@@ -8854,7 +8878,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
@@ -9125,7 +9149,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -9978,6 +10002,9 @@
|
|
<if test="filterVO.userId!=null">
|
|
<if test="filterVO.userId!=null">
|
|
AND f.user_id = #{filterVO.userId}
|
|
AND f.user_id = #{filterVO.userId}
|
|
</if>
|
|
</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 != ''">
|
|
<if test="filterVO.isPlacefile != null and filterVO.isPlacefile != ''">
|
|
and a.is_placefile = #{filterVO.isPlacefile}
|
|
and a.is_placefile = #{filterVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -10001,7 +10028,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
<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>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.beh_dept_id,
|
|
a.beh_dept_id,
|
|
@@ -10068,6 +10095,9 @@
|
|
<if test="filterVO.hospitalId != null and filterVO.hospitalId != ''">
|
|
<if test="filterVO.hospitalId != null and filterVO.hospitalId != ''">
|
|
AND a.hospital_id = #{filterVO.hospitalId}
|
|
AND a.hospital_id = #{filterVO.hospitalId}
|
|
</if>
|
|
</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.isPlacefile != null and filterVO.isPlacefile == 0">
|
|
<if test="filterVO.startDate != null ">
|
|
<if test="filterVO.startDate != null ">
|
|
<![CDATA[ AND a.behospital_date >= #{filterVO.startDate}]]>
|
|
<![CDATA[ AND a.behospital_date >= #{filterVO.startDate}]]>
|
|
@@ -10085,7 +10115,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="filterVO.deptName != null and filterVO.deptName != ''">
|
|
<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>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.beh_dept_id,
|
|
a.beh_dept_id,
|
|
@@ -10376,8 +10406,11 @@
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
</if>
|
|
</if>
|
|
</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 != ''">
|
|
<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>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.beh_dept_id,
|
|
a.beh_dept_id,
|
|
@@ -10460,8 +10493,11 @@
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
<![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
|
|
</if>
|
|
</if>
|
|
</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 != ''">
|
|
<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>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
a.beh_dept_id,
|
|
a.beh_dept_id,
|
|
@@ -10587,7 +10623,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="deptName != null and deptName != ''">
|
|
<if test="deptName != null and deptName != ''">
|
|
- AND a.beh_dept_name like CONCAT('%', #{deptName}, '%')
|
|
|
|
|
|
+ AND a.beh_dept_name= #{deptName}qcCheckStatisticsByDept
|
|
</if>
|
|
</if>
|
|
<if test="casesEntryIds != null and casesEntryIds.size()>0">
|
|
<if test="casesEntryIds != null and casesEntryIds.size()>0">
|
|
AND c.cases_entry_id IN
|
|
AND c.cases_entry_id IN
|
|
@@ -10712,7 +10748,7 @@
|
|
and a.is_placefile = #{isPlacefile}
|
|
and a.is_placefile = #{isPlacefile}
|
|
</if>
|
|
</if>
|
|
<if test="doctorName != null and doctorName != ''">
|
|
<if test="doctorName != null and doctorName != ''">
|
|
- and a.doctor_name = #{doctorName}
|
|
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -10814,7 +10850,7 @@
|
|
and a.beh_dept_name = #{deptName}
|
|
and a.beh_dept_name = #{deptName}
|
|
</if>
|
|
</if>
|
|
<if test="doctorName != null and doctorName != ''">
|
|
<if test="doctorName != null and doctorName != ''">
|
|
- and a.doctor_name = #{doctorName}
|
|
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="deptClass != null and deptClass != ''">
|
|
<if test="deptClass != null and deptClass != ''">
|
|
and a.beh_dept_id = #{deptClass}
|
|
and a.beh_dept_id = #{deptClass}
|
|
@@ -11475,8 +11511,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -12175,7 +12210,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
- and a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
|
|
|
+ AND a.doctor_name like CONCAT('%', #{qcResultShortPageVO.doctorName}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
@@ -13144,7 +13179,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -13366,7 +13401,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -15013,7 +15048,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -15791,7 +15826,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
m1.behospital_code
|
|
m1.behospital_code
|
|
@@ -16050,7 +16085,7 @@
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
</if>
|
|
GROUP BY
|
|
GROUP BY
|
|
m1.behospital_code
|
|
m1.behospital_code
|
|
@@ -16759,8 +16794,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
@@ -16955,8 +16989,7 @@
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
<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>
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|
|
AND c.`level` = #{qcResultShortPageVO.level}
|