|
@@ -45,6 +45,8 @@ public interface AdjustBedDao {
|
|
|
" zy_actpatient.admiss_diag_str,\n" +
|
|
|
" (select name from a_employee_mi where code = zy_actpatient.refer_physician) as zyDoctorName,\n" +
|
|
|
" (select name from zd_unit_code where zy_actpatient.small_dept = code) as smallDeptName,\n" +
|
|
|
+ " (select birth_date from a_patient_mi where inpatient_no = zy_actpatient.inpatient_no) as birthDate,\n" +
|
|
|
+ " (select SYSDATETIME()) AS currentDate,\n" +
|
|
|
" zy_actpatient.balance\n" +
|
|
|
" from zy_bed_mi left join zy_actpatient on zy_bed_mi.inpatient_no = zy_actpatient.inpatient_no\n" +
|
|
|
" where zy_bed_mi.ward_code = #{wardCode} order by cast(zy_bed_mi.bed_no as int) ")
|