fix:修复通过临时规划单和系统编号查询结果一直是临时单号的问题

This commit is contained in:
lulz1 2024-07-09 17:45:57 +08:00
parent dd718f7447
commit e4defad983
1 changed files with 6 additions and 1 deletions

View File

@ -546,7 +546,12 @@ public class OrderQuery {
.filter(it -> it.getLegId() == null)
.toList();
if (!eventList.isEmpty()) {
routeRepository.save(routeOrder);
ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo();
if (approveOrderNo != null && approveOrderNo.getActualOrderNo() != null) {
routeRepository.save(routeOrder);
} else {
routeRepository.saveTempRouteOrder(routeOrder, 15L);
}
}