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

This commit is contained in:
lulz1 2024-07-09 17:14:42 +08:00
parent c04b2f6b3f
commit dd718f7447
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class OrderApplicationService {
List<Leg> legs = processLegData(legData, routeOrder); //创建行程节点 List<Leg> legs = processLegData(legData, routeOrder); //创建行程节点
legDomainService.queryLocation(legs); legDomainService.queryLocation(legs);
legs.forEach(leg -> handleLegEvents(leg, addLegData, routeOrder)); legs.forEach(leg -> handleLegEvents(leg, addLegData, routeOrder));
if (routeOrder.getApproveOrderNo() != null && routeOrder.getApproveOrderNo().getActualOrderNo() == null) { if (routeOrder.getApproveOrderNo() == null || routeOrder.getApproveOrderNo().getActualOrderNo() == null) {
routeRepository.saveTempRouteOrder(routeOrder, 24L); //如果是未审批状态的话 将行程规划单保存到redis routeRepository.saveTempRouteOrder(routeOrder, 24L); //如果是未审批状态的话 将行程规划单保存到redis
} else { } else {
routeRepository.save(routeOrder); // 仅在所有操作完成后保存一次 routeRepository.save(routeOrder); // 仅在所有操作完成后保存一次