From b95b5c29cb3cdadcf110856db34719a3315f93c8 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Mon, 24 Jun 2024 09:00:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E5=BD=92=E5=B1=9E=E9=83=A8=E9=97=A8=E6=97=B6=E9=AB=98=E5=BE=B7?= =?UTF-8?q?=E6=B6=88=E8=B4=B9=E6=98=8E=E7=BB=86=E5=9B=9E=E6=8E=A8=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/chint/domain/aggregates/order/RouteOrder.java | 1 + .../com/chint/domain/service/leg_event/LegEventHandler.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chint/domain/aggregates/order/RouteOrder.java b/src/main/java/com/chint/domain/aggregates/order/RouteOrder.java index 0380a419..247d8761 100644 --- a/src/main/java/com/chint/domain/aggregates/order/RouteOrder.java +++ b/src/main/java/com/chint/domain/aggregates/order/RouteOrder.java @@ -169,6 +169,7 @@ public class RouteOrder implements Serializable { for (ApproveCustomField approveCustomField : approveCustomFieldList) { String fieldName = approveCustomField.getFieldName(); String fieldValue = approveCustomField.getFieldValue(); + this.routeCustomExtensionFieldList = new ArrayList<>(this.routeCustomExtensionFieldList); Optional first = this.routeCustomExtensionFieldList .stream() .filter(it -> it.getFieldName().equals(fieldName)) diff --git a/src/main/java/com/chint/domain/service/leg_event/LegEventHandler.java b/src/main/java/com/chint/domain/service/leg_event/LegEventHandler.java index 6a9798ab..97bdbd1a 100644 --- a/src/main/java/com/chint/domain/service/leg_event/LegEventHandler.java +++ b/src/main/java/com/chint/domain/service/leg_event/LegEventHandler.java @@ -160,7 +160,8 @@ public class LegEventHandler implements LegEventService { command.order(save); //异步执行自动同步功能 - Command.of(RouteAutoSyncCommand.class).route(save).async().sendToQueue(); + Command.of(RouteAutoSyncCommand.class).route(routeRepository + .findByFakeOrderNoAndSysCode(fakeOrderNo, sysCode)).async().sendToQueue(); } @Transactional