320 手术管理-》门诊手术安排:新增手术安排界面的就诊卡号取值错误

This commit is contained in:
Ranyunqiao
2026-04-03 10:45:19 +08:00
parent 22de02f132
commit 35b8a7d10a
8 changed files with 42 additions and 15 deletions

View File

@@ -31,7 +31,7 @@
cs.org_id,
o.name AS org_name,
cs.main_surgeon_name AS surgeon_name,
pi.identifier_no AS patient_card_no
COALESCE(pi.identifier_no, ap.bus_no, '') AS identifierNo
FROM op_schedule os
LEFT JOIN adm_patient ap ON os.patient_id = ap.id
LEFT JOIN cli_surgery cs ON os.oper_code = cs.surgery_no AND cs.delete_flag = '0'
@@ -89,7 +89,7 @@
cs.apply_doctor_name AS apply_doctor_name,
drf.create_time AS apply_time,
os.surgery_nature AS surgeryType,
pi.identifier_no AS patient_card_no
COALESCE(pi.identifier_no, ap.bus_no, '') AS identifierNo
FROM op_schedule os
LEFT JOIN adm_patient ap ON os.patient_id = ap.id
LEFT JOIN cli_surgery cs ON os.oper_code = cs.surgery_no AND cs.delete_flag = '0'
@@ -150,7 +150,7 @@
cs.org_id,
o.name AS org_name,
cs.main_surgeon_name AS surgeon_name,
pi.identifier_no AS patient_card_no
COALESCE(pi.identifier_no, ap.bus_no, '') AS identifierNo
FROM op_schedule os
LEFT JOIN adm_patient ap ON os.patient_id = ap.id
LEFT JOIN cli_surgery cs ON os.oper_code = cs.surgery_no AND cs.delete_flag = '0'