|
|
|
@ -665,13 +665,20 @@
|
|
|
|
|
'是'
|
|
|
|
|
ELSE
|
|
|
|
|
'否'
|
|
|
|
|
END callBackStatus
|
|
|
|
|
END callBackStatus,
|
|
|
|
|
CASE
|
|
|
|
|
WHEN printInfoTable.patient_id IS NOT NULL THEN
|
|
|
|
|
'是'
|
|
|
|
|
ELSE
|
|
|
|
|
'否'
|
|
|
|
|
END printStatus
|
|
|
|
|
from
|
|
|
|
|
archive_transfer_dept_user
|
|
|
|
|
inner join
|
|
|
|
|
archive_master
|
|
|
|
|
on
|
|
|
|
|
archive_master.id = archive_transfer_dept_user.master_id
|
|
|
|
|
LEFT JOIN <include refid="selectPatientIdByPrintInfo"></include> printInfoTable ON printInfoTable.patient_id = archive_master.patient_id
|
|
|
|
|
LEFT JOIN <include refid="selectCallBackList"></include> archive_other_ext ON archive_master.patient_id = archive_other_ext.jzh
|
|
|
|
|
where user_name = #{userName}
|
|
|
|
|
<include refid="leaveHospitalCommomSearch"></include>
|
|
|
|
|