修复创建 同程订单的bug
This commit is contained in:
parent
72c3538df5
commit
2af5c45f37
|
@ -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); //无
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
* 日志接口
|
||||
*/
|
||||
@RestController()
|
||||
@RequestMapping("/log")
|
||||
@RequestMapping("/public/log")
|
||||
public class LogController {
|
||||
|
||||
@Autowired
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue