修复飞机状态自动更新的问题

This commit is contained in:
lulz1 2024-03-17 16:37:49 +08:00
parent 6498cdac76
commit fc36cd5da2
1 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,8 @@ import java.util.stream.Collectors;
import static com.chint.infrastructure.constant.BelongSystemConstant.*;
import static com.chint.infrastructure.constant.CommonMessageConstant.NOT_FOUND;
import static com.chint.infrastructure.constant.FSSCConstant.*;
import static com.chint.infrastructure.constant.FSSCConstant.FSSC_FLIGHT_STATUS_CHANGE;
import static com.chint.infrastructure.constant.FSSCConstant.FSSC_TRAIN_STATUS_CHANGE;
import static com.chint.infrastructure.constant.OrderConstant.ORDER_EVENT_ETA;
@Component
@ -144,7 +145,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
first1.ifPresent(it -> {
OrderEvent lastEvent = it.getLastEvent();
if (orderDetail.getOrderNo().contains("C")){
if (orderDetail.getOrderNo().contains("C") && orderDetails.getIsChangeOrder()) {
//如果发现同程的订单号里面还有C就能够判断出 它是改签订单
flightOrderDetail.setOrderStatus(FSSC_FLIGHT_STATUS_CHANGE);
} else if (lastEvent != null) {
@ -449,6 +450,9 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
first1.ifPresent(it -> {
OrderEvent lastEvent = it.getLastEvent();
if (trainDetailData.getIsChangedOrder().equals(1)) {
trainOrderDetail.setOrderStatus(FSSC_TRAIN_STATUS_CHANGE);
}
if (lastEvent != null) {
trainOrderDetail.setOrderStatus(lastEvent.mapToTrainOrderDetailStatus());
} else {