From 103d5a44f3c84abf11fd4b6d018744416e6f324c Mon Sep 17 00:00:00 2001 From: lulz1 Date: Fri, 22 Mar 2024 13:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=8C=E7=A8=8B=E8=A7=84?= =?UTF-8?q?=E5=88=92=E5=8D=95=E6=97=A0=E6=B3=95=E5=9B=9E=E5=A4=8D=E5=88=B0?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E4=B8=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/chint/domain/service/OrderDomainService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chint/domain/service/OrderDomainService.java b/src/main/java/com/chint/domain/service/OrderDomainService.java index 8662e9c5..705c72a3 100644 --- a/src/main/java/com/chint/domain/service/OrderDomainService.java +++ b/src/main/java/com/chint/domain/service/OrderDomainService.java @@ -59,6 +59,7 @@ import static com.chint.infrastructure.constant.BelongSystemConstant.BELONG_SYS_ import static com.chint.infrastructure.constant.CommonMessageConstant.COMPANY_NAME_IN_BLACK_LIST; import static com.chint.infrastructure.constant.LegConstant.*; import static com.chint.infrastructure.constant.OrderConstant.*; +import static com.chint.infrastructure.constant.RouteConstant.APPROVAL_EVENT_ING; import static com.chint.infrastructure.constant.SupplierNameConstant.*; @Slf4j @@ -112,6 +113,7 @@ public class OrderDomainService { @Autowired private JdbcLegRepository jdbcLegRepository; + private Set companyBlackList = new HashSet<>(); public RouteOrder saveOrder(RouteOrder routeOrder) { @@ -195,6 +197,8 @@ public class OrderDomainService { .ifPresentOrElse(route -> { LegEvent legEvent = legEventFactory.creatLegEvent(command.getLegEventType()); route.getLegItems().forEach(leg -> leg.addEvent(legEvent)); + ApprovalEvent approvalEvent = routeOrderFactory.createApprovalEvent(APPROVAL_EVENT_ING); + route.addApprovalEvent(approvalEvent); this.saveOrder(route); }, () -> { //如果没有找到该订单,说明该订单可能是未提交的状态 , 这里执行和审批提交一样的操作 @@ -605,7 +609,6 @@ public class OrderDomainService { return recordId; } - private void lyCarRefundGenerate(String orderNo) { CarDetailResponse carDetailResponse = lySearchRequest.getCarDetailResponse(orderNo); if (carDetailResponse == null) {