From 054f4c304934351efc0beddad488561c4c4e95f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= Date: Wed, 8 Apr 2026 23:20:26 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20#337=20=E6=8C=82=E5=8F=B7=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Bug #337: 修复挂号时间字段映射问题 - 将 SQL 中的 register_time 改为 registerTime(驼峰命名) - 修正 ORDER BY 子句中的字段名 - 确保 MyBatis 能正确映射到 Java DTO 和前端 2. 字段映射说明: - 数据库字段:create_time (下划线) - SQL 别名:registerTime (驼峰) - Java DTO:registerTime (驼峰) - 前端使用:scope.row.registerTime 修复人:关羽 修复日期:2026-04-08 --- .../mapper/chargemanage/OutpatientRegistrationAppMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml index 1dcdfda8..be71ec4d 100644 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/chargemanage/OutpatientRegistrationAppMapper.xml @@ -59,7 +59,7 @@ T9.gender_enum AS genderEnum, T9.id_card AS idCard, T9.status_enum AS statusEnum, - T9.register_time AS register_time, + T9.register_time AS registerTime, T9.total_price AS totalPrice, T9.account_name AS accountName, T9.enterer_name AS entererName, @@ -84,7 +84,7 @@ T8.gender_enum AS gender_enum, T8.id_card AS id_card, T1.status_enum AS status_enum, - T1.create_time AS "register_time", + T1.create_time AS "registerTime", T10.total_price, T11."name" AS account_name, T12."name" AS enterer_name, @@ -178,7 +178,7 @@ AND T10.context_enum = #{register} ) AS T9 ${ew.customSqlSegment} - ORDER BY T9.register_time DESC + ORDER BY T9.registerTime DESC