修复飞机状态自动更新的问题
This commit is contained in:
parent
e0f1d4568f
commit
9726f67317
|
@ -23,7 +23,7 @@ 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.FSSC_HOTEL_STATUS_SUCCESS;
|
||||
import static com.chint.infrastructure.constant.FSSCConstant.*;
|
||||
import static com.chint.infrastructure.constant.OrderConstant.ORDER_EVENT_ETA;
|
||||
|
||||
@Component
|
||||
|
@ -144,7 +144,10 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
|
|||
|
||||
first1.ifPresent(it -> {
|
||||
OrderEvent lastEvent = it.getLastEvent();
|
||||
if (lastEvent != null) {
|
||||
if (orderDetail.getOrderNo().contains("C")){
|
||||
//如果发现同程的订单号里面还有C就能够判断出 ,它是改签订单
|
||||
flightOrderDetail.setOrderStatus(FSSC_FLIGHT_STATUS_CHANGE);
|
||||
} else if (lastEvent != null) {
|
||||
flightOrderDetail.setOrderStatus(lastEvent.mapToFlightOrderDetailStatus());
|
||||
} else {
|
||||
//如果订单事件为空,那么就需要重新根据查询到的订单信息重新进行映射
|
||||
|
|
|
@ -293,17 +293,9 @@ class RouteApplicationTests {
|
|||
routeRepository.deleteById(875L);
|
||||
}
|
||||
|
||||
// @Test
|
||||
@Test
|
||||
void deleteOrderDetail() {
|
||||
orderDetailRepository.deleteById(15L);
|
||||
orderDetailRepository.deleteById(18L);
|
||||
orderDetailRepository.deleteById(19L);
|
||||
orderDetailRepository.deleteById(20L);
|
||||
orderDetailRepository.deleteById(23L);
|
||||
orderDetailRepository.deleteById(26L);
|
||||
orderDetailRepository.deleteById(28L);
|
||||
orderDetailRepository.deleteById(31L);
|
||||
orderDetailRepository.deleteById(33L);
|
||||
orderDetailRepository.deleteById(1450L);
|
||||
}
|
||||
|
||||
// @Test
|
||||
|
|
Loading…
Reference in New Issue