|
@@ -4101,6 +4101,15 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="deptId!=null and deptId !=''">
|
|
|
+ AND a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorId != null and doctorId != ''">
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
</if>
|
|
@@ -4174,6 +4183,15 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="deptId!=null and deptId !=''">
|
|
|
+ AND a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorId != null and doctorId != ''">
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
</if>
|
|
@@ -4263,6 +4281,15 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="deptId!=null and deptId !=''">
|
|
|
+ AND a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorId != null and doctorId != ''">
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
</if>
|
|
@@ -5986,6 +6013,9 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
|
</if>
|
|
@@ -6008,9 +6038,7 @@
|
|
|
AND d.cases_id = #{qcResultShortPageVO.casesId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -10069,13 +10097,11 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -10340,6 +10366,9 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
|
</if>
|
|
@@ -10362,9 +10391,7 @@
|
|
|
AND d.cases_id = #{qcResultShortPageVO.casesId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -12253,6 +12280,9 @@
|
|
|
<if test="deptClass != null and deptClass != ''">
|
|
|
and a.beh_dept_id = #{deptClass}
|
|
|
</if>
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
+ and a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
<if test="titleName != null and titleName != '' ">
|
|
|
<if test="titleName == '不合格数'">
|
|
|
AND e.`level`='不合格'
|
|
@@ -12265,7 +12295,9 @@
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
- AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ AND (a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
+ OR a.beh_doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
+ OR a.director_doctor_name LIKE CONCAT( '%', #{doctorName}, '%'))
|
|
|
</if>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -12296,9 +12328,7 @@
|
|
|
AND a.NAME LIKE CONCAT( '%', #{patName}, '%' )
|
|
|
</if>
|
|
|
<if test="doctorId != null and doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{doctorId}, '%' ))
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
</if>
|
|
|
)be
|
|
|
left join med_check_info mci
|
|
@@ -12352,14 +12382,6 @@
|
|
|
AND d.cases_entry_id = e.id
|
|
|
AND d.cases_id = 243
|
|
|
AND a.qc_type_id != 0
|
|
|
- <!-- <if test="titleName != null ">-->
|
|
|
- <!-- <if test="titleName == '不合格数'">-->
|
|
|
- <!-- AND c.`level`='不合格'-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="titleName == '合格数'">-->
|
|
|
- <!-- AND c.`level`='合格'-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- </if>-->
|
|
|
<if test="userId!=null">
|
|
|
AND b.user_id = #{userId}
|
|
|
</if>
|
|
@@ -12367,11 +12389,19 @@
|
|
|
and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
- AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ AND (a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
+ OR a.beh_doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
+ OR a.director_doctor_name LIKE CONCAT( '%', #{doctorName}, '%'))
|
|
|
+ </if>
|
|
|
+ <if test="doctorId != null and doctorId != ''">
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
</if>
|
|
|
<if test="deptClass != null and deptClass != ''">
|
|
|
and a.beh_dept_id = #{deptClass}
|
|
|
</if>
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
+ and a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
@@ -14503,9 +14533,6 @@
|
|
|
AND c.`level`='合格'
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.doctorName != null and 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}
|
|
|
</if>
|
|
@@ -14534,6 +14561,9 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
@@ -14541,9 +14571,7 @@
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -14724,21 +14752,10 @@
|
|
|
AND c.cases_id = k.cases_id
|
|
|
AND k.cases_id = d.cases_id
|
|
|
AND k.cases_entry_id = d.id
|
|
|
- <!-- <if test="qcResultShortPageVO.titleName != null ">-->
|
|
|
- <!-- <if test="qcResultShortPageVO.titleName == '不合格数'">-->
|
|
|
- <!-- AND c.`level`='不合格'-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- <if test="qcResultShortPageVO.titleName == '合格数'">-->
|
|
|
- <!-- AND c.`level`='合格'-->
|
|
|
- <!-- </if>-->
|
|
|
- <!-- </if>-->
|
|
|
AND a.qc_type_id != 0
|
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
|
AND b.user_id = #{qcResultShortPageVO.userId}
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- and a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
- </if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
</if>
|
|
@@ -14767,6 +14784,9 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
@@ -14777,9 +14797,7 @@
|
|
|
AND d.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|