|
@@ -52,7 +52,7 @@
|
|
|
h.check_time AS mr_time
|
|
|
from (
|
|
|
select a.*, ifnull(b.level,'未评分') as `level`, b.grade_type, b.score_res, b.gmt_create as
|
|
|
- grade_time,IF(c.age is null, null,CONCAT( ifnull(c.age,'') ,ifnull(c.age_unit,'') )as age,e.score_res as score_bn from med_behospital_info a
|
|
|
+ grade_time,IF(c.age is null, null,CONCAT( ifnull(c.age,'') ,ifnull(c.age_unit,'') ))as age,e.score_res as score_bn from med_behospital_info a
|
|
|
LEFT JOIN med_qcresult_info b
|
|
|
on a.behospital_code = b.behospital_code and b.is_deleted = 'N'
|
|
|
left join med_home_page c
|
|
@@ -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
|
|
@@ -3696,7 +3705,7 @@
|
|
|
AND t1.behDeptName = t2.behDeptName
|
|
|
ORDER BY
|
|
|
t1.behDeptName,
|
|
|
- t1.behDoctorName,
|
|
|
+ t1.doctorName,
|
|
|
t1.patName,
|
|
|
<if test="radioCheck !=null and radioCheck == 1">
|
|
|
t1.caseName,
|
|
@@ -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="doctorName != null and doctorName != ''">
|
|
|
+ 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>
|
|
|
) 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="doctorName != null and doctorName != ''">
|
|
|
+ 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>
|
|
|
) 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="doctorName != null and doctorName != ''">
|
|
|
+ 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>
|
|
|
) 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="doctorName != null and doctorName != ''">
|
|
|
+ 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>
|
|
|
) 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="doctorName != null and doctorName != ''">
|
|
|
+ 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>
|
|
|
) 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,10 @@
|
|
|
</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}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -7440,7 +7473,10 @@
|
|
|
</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}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -7497,7 +7533,10 @@
|
|
|
</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}, '%' )
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
a.doctor_id,
|
|
@@ -7565,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
|
|
@@ -7613,8 +7652,11 @@
|
|
|
<![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ 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,
|
|
@@ -8315,7 +8357,7 @@
|
|
|
AND a.beh_dept_id = b.dept_id
|
|
|
AND a.qc_type_id != 0
|
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
|
- AND c.user_id = #{qcResultShortPageVO.userId}
|
|
|
+ AND b.user_id = #{qcResultShortPageVO.userId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
@@ -8343,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}, '%' )
|
|
@@ -8557,7 +8599,7 @@
|
|
|
AND a.beh_dept_id = b.dept_id
|
|
|
AND a.qc_type_id != 0
|
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
|
- AND c.user_id = #{qcResultShortPageVO.userId}
|
|
|
+ AND b.user_id = #{qcResultShortPageVO.userId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
@@ -8585,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}, '%' )
|
|
@@ -8697,7 +8739,9 @@
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
t.behDeptId,
|
|
|
- t.behDeptName
|
|
|
+ t.behDeptName,
|
|
|
+ t.doctorId,
|
|
|
+ t.doctorName
|
|
|
)f2
|
|
|
WHERE
|
|
|
f1.doctorId = f2.doctorId
|
|
@@ -8840,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}
|
|
@@ -9111,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}
|
|
@@ -9955,7 +9999,6 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.beh_dept_id = f.dept_id
|
|
|
- AND a.beh_dept_id = e.dept_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
and a.doctor_id=e.doctor_id
|
|
|
and e.group_id is not NULL
|
|
@@ -9964,6 +10007,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>
|
|
@@ -9987,7 +10033,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,
|
|
@@ -10039,7 +10085,6 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.beh_dept_id = f.dept_id
|
|
|
- AND a.beh_dept_id = e.dept_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
and a.doctor_id=e.doctor_id
|
|
|
and e.group_id is not NULL
|
|
@@ -10054,6 +10099,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}]]>
|
|
@@ -10071,7 +10119,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,
|
|
@@ -10331,7 +10379,6 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.beh_dept_id = f.dept_id
|
|
|
- AND a.beh_dept_id = e.dept_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
and a.doctor_id=e.doctor_id
|
|
|
and e.group_id is not NULL
|
|
@@ -10362,8 +10409,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,
|
|
@@ -10415,7 +10465,6 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.beh_dept_id = f.dept_id
|
|
|
- AND a.beh_dept_id = e.dept_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
and a.doctor_id=e.doctor_id
|
|
|
and e.group_id is not NULL
|
|
@@ -10446,8 +10495,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,
|
|
@@ -10573,7 +10625,10 @@
|
|
|
</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}, '%')
|
|
|
</if>
|
|
|
<if test="casesEntryIds != null and casesEntryIds.size()>0">
|
|
|
AND c.cases_entry_id IN
|
|
@@ -10698,7 +10753,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}
|
|
@@ -10800,7 +10855,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}
|
|
@@ -11461,8 +11516,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}
|
|
@@ -12161,7 +12215,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}
|
|
@@ -13130,7 +13184,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}
|
|
@@ -13352,7 +13406,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}
|
|
@@ -14999,7 +15053,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}
|
|
@@ -15777,7 +15831,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
|
|
@@ -16036,7 +16090,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
|
|
@@ -16745,8 +16799,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}
|
|
@@ -16941,8 +16994,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}
|