From c0cdfcc6887a95bf864d0e615c738d47a6408a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= <关羽@gentronhealth.com> Date: Sun, 10 May 2026 23:58:32 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#506:=20=E9=97=A8=E8=AF=8A=E6=8C=82?= =?UTF-8?q?=E5=8F=B7=EF=BC=9A=E9=97=A8=E8=AF=8A=E8=AF=8A=E5=89=8D=E9=80=80?= =?UTF-8?q?=E5=8F=B7=E5=90=8E=EF=BC=8C=E6=95=B0=E6=8D=AE=E5=BA=93=E5=A4=9A?= =?UTF-8?q?=E8=A1=A8=E7=8A=B6=E6=80=81=E5=80=BC=E5=8F=98=E6=9B=B4=E4=B8=8E?= =?UTF-8?q?=20PRD=20=E5=AE=9A=E4=B9=89=E4=B8=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 syncAppointmentReturnStatus 方法中: 1. 退号时同步将 order_main.pay_status 设为 0(未支付),修复退费后 pay_status 仍为 1 的问题 2. cancel_reason 固定使用标准化值"门诊退号",确保与 PRD 定义一致 Co-Authored-By: Claude Opus 4.7 --- .../appservice/impl/OutpatientRegistrationAppServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/appservice/impl/OutpatientRegistrationAppServiceImpl.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/appservice/impl/OutpatientRegistrationAppServiceImpl.java index 79840fc2..861aaa60 100755 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/appservice/impl/OutpatientRegistrationAppServiceImpl.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/appservice/impl/OutpatientRegistrationAppServiceImpl.java @@ -633,9 +633,9 @@ public class OutpatientRegistrationAppServiceImpl implements IOutpatientRegistra Order updateOrder = new Order(); updateOrder.setId(appointmentOrder.getId()); updateOrder.setStatus(CommonConstants.AppointmentOrderStatus.RETURNED); + updateOrder.setPayStatus(0); updateOrder.setCancelTime(now); - updateOrder.setCancelReason( - StringUtils.isNotEmpty(reason) ? reason : "门诊退号"); + updateOrder.setCancelReason("门诊退号"); updateOrder.setUpdateTime(now); orderService.updateById(updateOrder); }