From 37c2377b66df5a5e63b1a76943a614ee0c16e5b7 Mon Sep 17 00:00:00 2001 From: guanyu Date: Sun, 17 May 2026 23:15:34 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:getSurgeryScheduleDetail SQL 查询中 cs.incision_level AS "incisionLevel" 使用了双引号包裹列别名,在 PostgreSQL 中双引号使标识符大小写敏感, 导致 MyBatis 无法正确映射到 OpScheduleDto 的 incisionLevel 字段。 修复:移除双引号,改为 cs.incision_level AS incisionLevel。 Co-Authored-By: Claude Opus 4.7 --- .../mapper/clinicalmanage/SurgicalScheduleAppMapper.xml | 2 +- 1 file changed, 1 insertion(+), 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 9514f62ff..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 @@ -89,7 +89,7 @@ cs.apply_doctor_name AS apply_doctor_name, drf.create_time AS apply_time, os.surgery_nature AS surgeryType, - cs.incision_level AS "incisionLevel", + cs.incision_level AS incisionLevel, os.fee_type AS feeType, COALESCE(pi.identifier_no, ap.bus_no, '') AS identifierNo FROM op_schedule os