From ab12d23168b58875a0baa8e6a96518f7bef44e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= <赵云@gentronhealth.com> Date: Fri, 15 May 2026 15:41:45 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#532:=20=E3=80=90=E6=89=8B=E6=9C=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=91=E7=82=B9=E5=87=BB"=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B"=E6=88=96"=E7=BC=96=E8=BE=91"=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=20SQL=20=E8=AF=AD=E6=B3=95=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:getSurgeryScheduleDetail SQL 查询中引用了 fc.contract_name AS feeType, 但 fc (fin_contract) 表从未被 JOIN,导致 SQL 语法错误。 修复:删除未关联表的 fc.contract_name 字段,保留已有的 os.fee_type AS feeType。 Co-Authored-By: Claude Opus 4.7 --- .../mapper/clinicalmanage/SurgicalScheduleAppMapper.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/clinicalmanage/SurgicalScheduleAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/clinicalmanage/SurgicalScheduleAppMapper.xml index 74abd7a4f..5399be5ce 100755 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/clinicalmanage/SurgicalScheduleAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/clinicalmanage/SurgicalScheduleAppMapper.xml @@ -90,7 +90,6 @@ drf.create_time AS apply_time, os.surgery_nature AS surgeryType, cs.incision_level AS incisionLevel, - fc.contract_name AS feeType, os.fee_type AS feeType, COALESCE(pi.identifier_no, ap.bus_no, '') AS identifierNo FROM op_schedule os