修复行程规划单无法回复到审批中的问题

This commit is contained in:
lulz1 2024-03-22 13:11:01 +08:00
parent 99de34606e
commit 103d5a44f3
1 changed files with 4 additions and 1 deletions

View File

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