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