修复创建 同程订单的bug

This commit is contained in:
lulz1 2024-03-15 03:42:18 +08:00
parent 72c3538df5
commit 2af5c45f37
3 changed files with 6 additions and 14 deletions

View File

@ -212,9 +212,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
Optional<OrderEvent> first1 = orderDetail.getOrderEventList()
.stream()
.findFirst();
if (first1 != null){
flightOrderDetail.setOverStandardReason(first1.get().getExtension());
}
first1.ifPresent(orderEvent -> flightOrderDetail.setOverStandardReason(orderEvent.getExtension()));
// flightOrderDetail.setBookingUserPhone(data.get); //
@ -346,9 +344,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
Optional<OrderEvent> first2 = orderDetail.getOrderEventList()
.stream()
.findFirst();
if (first2 != null){
hotelOrderDetail.setOverStandardReason(first2.get().getExtension());
}
first2.ifPresent(orderEvent -> hotelOrderDetail.setOverStandardReason(orderEvent.getExtension()));
List<Resident> residentList = data.getResidentList();
if (residentList != null && !residentList.isEmpty()) {
@ -527,9 +523,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
Optional<OrderEvent> first2 = orderDetail.getOrderEventList()
.stream()
.findFirst();
if (first2 != null){
trainOrderDetail.setOverStandardReason(first2.get().getExtension());
}
first2.ifPresent(orderEvent -> trainOrderDetail.setOverStandardReason(orderEvent.getExtension()));
// trainOrderDetail.setOriginalOrderNo("originalOrderNo"); //
// trainOrderDetail.setBookingUserPhone(trainDetailData.getContactInfo().getPersonMobile() != null ?
@ -652,9 +646,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
Optional<OrderEvent> first2 = orderDetail.getOrderEventList()
.stream()
.findFirst();
if (first2 != null){
carOrderDetail.setOverStandardReason(first2.get().getExtension());
}
first2.ifPresent(orderEvent -> carOrderDetail.setOverStandardReason(orderEvent.getExtension()));
// carOrderDetail.setParentOrderNo(parentOrderNo); //

View File

@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
* 日志接口
*/
@RestController()
@RequestMapping("/log")
@RequestMapping("/public/log")
public class LogController {
@Autowired

View File

@ -32,7 +32,7 @@ public class WebConfig implements WebMvcConfigurer {
//调用bean
registry.addInterceptor(getMyRequestLoggingInterceptor())
.addPathPatterns("/**")
.excludePathPatterns("/log/pageQuery", "/order/pageQuery", "/OrderDetail/query/page", "/order/query/**", "/location/**");
.excludePathPatterns("/public/log/pageQuery", "/order/pageQuery", "/OrderDetail/query/page", "/order/query/**", "/location/**");
}
@Override