fix:修复出现空订单号的问题
This commit is contained in:
parent
def59eaf05
commit
fe764bc2ab
|
@ -211,19 +211,39 @@ public class OrderDetail implements Serializable {
|
||||||
|
|
||||||
public OrderDetail deepClone() {
|
public OrderDetail deepClone() {
|
||||||
OrderDetail copyOrderDetail = BeanUtil.copyProperties(this, OrderDetail.class);
|
OrderDetail copyOrderDetail = BeanUtil.copyProperties(this, OrderDetail.class);
|
||||||
|
if (this.hotelOrderDetail != null) {
|
||||||
HotelOrderDetail copiedHotelOrderDetail = BeanUtil.copyProperties(this.hotelOrderDetail, HotelOrderDetail.class);
|
HotelOrderDetail copiedHotelOrderDetail = BeanUtil.copyProperties(this.hotelOrderDetail, HotelOrderDetail.class);
|
||||||
copyOrderDetail.setHotelOrderDetail(copiedHotelOrderDetail);
|
copyOrderDetail.setHotelOrderDetail(copiedHotelOrderDetail);
|
||||||
|
} else {
|
||||||
|
copyOrderDetail.setHotelOrderDetail(null);
|
||||||
|
}
|
||||||
|
|
||||||
// 深拷贝 carOrderDetail
|
// 深拷贝 carOrderDetail
|
||||||
|
if (this.carOrderDetail != null) {
|
||||||
CarOrderDetail copiedCarOrderDetail = BeanUtil.copyProperties(this.carOrderDetail, CarOrderDetail.class);
|
CarOrderDetail copiedCarOrderDetail = BeanUtil.copyProperties(this.carOrderDetail, CarOrderDetail.class);
|
||||||
copyOrderDetail.setCarOrderDetail(copiedCarOrderDetail);
|
copyOrderDetail.setCarOrderDetail(copiedCarOrderDetail);
|
||||||
|
} else {
|
||||||
|
copyOrderDetail.setCarOrderDetail(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 深拷贝 flightOrderDetail
|
// 深拷贝 flightOrderDetail
|
||||||
|
if (this.flightOrderDetail != null) {
|
||||||
FlightOrderDetail copiedFlightOrderDetail = BeanUtil.copyProperties(this.flightOrderDetail, FlightOrderDetail.class);
|
FlightOrderDetail copiedFlightOrderDetail = BeanUtil.copyProperties(this.flightOrderDetail, FlightOrderDetail.class);
|
||||||
copyOrderDetail.setFlightOrderDetail(copiedFlightOrderDetail);
|
copyOrderDetail.setFlightOrderDetail(copiedFlightOrderDetail);
|
||||||
|
} else {
|
||||||
|
copyOrderDetail.setFlightOrderDetail(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 深拷贝 trainOrderDetail
|
// 深拷贝 trainOrderDetail
|
||||||
|
if (this.trainOrderDetail != null) {
|
||||||
TrainOrderDetail copiedTrainOrderDetail = BeanUtil.copyProperties(this.trainOrderDetail, TrainOrderDetail.class);
|
TrainOrderDetail copiedTrainOrderDetail = BeanUtil.copyProperties(this.trainOrderDetail, TrainOrderDetail.class);
|
||||||
copyOrderDetail.setTrainOrderDetail(copiedTrainOrderDetail);
|
copyOrderDetail.setTrainOrderDetail(copiedTrainOrderDetail);
|
||||||
|
} else {
|
||||||
|
copyOrderDetail.setTrainOrderDetail(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 深拷贝 otherOrderDetail
|
// 深拷贝 otherOrderDetail
|
||||||
//OtherOrderDetail copiedOtherOrderDetail = BeanUtil.copyProperties(this.otherOrderDetail, OtherOrderDetail.class);
|
//OtherOrderDetail copiedOtherOrderDetail = BeanUtil.copyProperties(this.otherOrderDetail, OtherOrderDetail.class);
|
||||||
|
|
Loading…
Reference in New Issue