fix:修复通过临时规划单和系统编号查询结果一直是临时单号的问题
This commit is contained in:
parent
c04b2f6b3f
commit
dd718f7447
|
@ -105,7 +105,7 @@ public class OrderApplicationService {
|
|||
List<Leg> legs = processLegData(legData, routeOrder); //创建行程节点
|
||||
legDomainService.queryLocation(legs);
|
||||
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
|
||||
} else {
|
||||
routeRepository.save(routeOrder); // 仅在所有操作完成后保存一次
|
||||
|
|
Loading…
Reference in New Issue