|
@@ -4571,7 +4571,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}
|
|
@@ -6504,7 +6504,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}, '%' )
|
|
@@ -7868,7 +7868,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}, '%' )
|
|
@@ -8101,7 +8101,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}, '%' )
|
|
@@ -9417,8 +9417,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}
|
|
@@ -9686,7 +9685,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}
|
|
@@ -10819,7 +10818,7 @@
|
|
|
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}, '%' )
|
|
|
+ AND a.beh_dept_name = #{qcResultPageVO.deptName}
|
|
|
</if>
|
|
|
<if test="qcResultPageVO.behospitalCode != null and qcResultPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultPageVO.behospitalCode}, '%' )
|
|
@@ -11087,7 +11086,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 != ''">
|
|
@@ -11536,7 +11535,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}, '%' )
|
|
@@ -11759,7 +11758,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}, '%' )
|
|
@@ -12498,7 +12497,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}
|
|
@@ -12711,7 +12710,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}
|
|
@@ -13602,6 +13601,7 @@
|
|
|
t.leaveHospitalDate,
|
|
|
t.lastBehDeptId,
|
|
|
t.lastBehDeptName,
|
|
|
+ t.lastDoctorName,
|
|
|
t.lastBehospitalCode,
|
|
|
t.lastBehospitalDate,
|
|
|
t.lastLeaveHospitalDate,
|
|
@@ -13631,8 +13631,8 @@
|
|
|
be.leaveHospitalDate,
|
|
|
be.lastBehDeptId,
|
|
|
be.lastBehDeptName,
|
|
|
- be.lastBoctorId,
|
|
|
- be.lastBoctorName,
|
|
|
+ be.lastDoctorId,
|
|
|
+ be.lastDoctorName,
|
|
|
be.lastBehospitalCode,
|
|
|
be.lastBehospitalDate,
|
|
|
be.lastLeaveHospitalDate,
|
|
@@ -13656,8 +13656,8 @@
|
|
|
r2.beh_dept_name AS lastBehDeptName,
|
|
|
r2.behospital_code AS lastBehospitalCode,
|
|
|
r2.behospital_date AS lastBehospitalDate,
|
|
|
- r2.doctor_id as lastBoctorId,
|
|
|
- r2.doctor_name as lastBoctorName,
|
|
|
+ r2.doctor_id as lastDoctorId,
|
|
|
+ r2.doctor_name as lastDoctorName,
|
|
|
r2.leave_hospital_date AS lastLeaveHospitalDate,
|
|
|
TIMESTAMPDIFF( DAY, DATE( r2.leave_hospital_date ), DATE( r1.behospital_date ) ) AS diffDays
|
|
|
FROM
|
|
@@ -13681,8 +13681,8 @@
|
|
|
SELECT
|
|
|
tt1.file_code,
|
|
|
tt1.diagnose,
|
|
|
- tt1.doctor_id,
|
|
|
- tt1.doctor_name,
|
|
|
+ tt2.doctor_id,
|
|
|
+ tt2.doctor_name,
|
|
|
tt2.NAME,
|
|
|
tt2.sex,
|
|
|
tt2.hospital_id,
|
|
@@ -13810,8 +13810,8 @@
|
|
|
SELECT
|
|
|
tt1.file_code,
|
|
|
tt1.diagnose,
|
|
|
- tt1.doctor_id,
|
|
|
- tt1.doctor_name,
|
|
|
+ tt2.doctor_id,
|
|
|
+ tt2.doctor_name,
|
|
|
tt2.NAME,
|
|
|
tt2.sex,
|
|
|
tt2.hospital_id,
|
|
@@ -14165,7 +14165,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
|
|
@@ -14650,7 +14650,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}
|
|
@@ -15071,7 +15071,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
|
|
@@ -15321,7 +15321,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
|
|
@@ -16166,7 +16166,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 != ''">
|
|
@@ -16353,7 +16353,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 != ''">
|