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) {