diff --git a/src/main/java/com/chint/domain/aggregates/order/HotelOrderDetail.java b/src/main/java/com/chint/domain/aggregates/order/HotelOrderDetail.java index b155c553..6a825dd1 100644 --- a/src/main/java/com/chint/domain/aggregates/order/HotelOrderDetail.java +++ b/src/main/java/com/chint/domain/aggregates/order/HotelOrderDetail.java @@ -125,8 +125,7 @@ public class HotelOrderDetail implements Serializable { private String refundAmount; // 入住人信息 -// @MappedCollection(idColumn = "hotel_order_detail_id", keyColumn = "hotel_order_detail_key") - @Transient + @MappedCollection(idColumn = "hotel_order_detail_id", keyColumn = "hotel_order_detail_key") private List customers; // 入离日期内差标 diff --git a/src/main/java/com/chint/domain/factoriy/order_detail/LYOrderExtensionFactoryImpl.java b/src/main/java/com/chint/domain/factoriy/order_detail/LYOrderExtensionFactoryImpl.java index dd2230e6..9c51e474 100644 --- a/src/main/java/com/chint/domain/factoriy/order_detail/LYOrderExtensionFactoryImpl.java +++ b/src/main/java/com/chint/domain/factoriy/order_detail/LYOrderExtensionFactoryImpl.java @@ -269,7 +269,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory { customer.setUserName(resident.getName()); customer.setPhone(resident.getContactPhone()); customer.setUserCode(resident.getEmployeeCode()); -// hotelOrderDetail.addCustomer(customer); + hotelOrderDetail.addCustomer(customer); } } @@ -432,7 +432,7 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory { customer.setUserName(resident.getName()); customer.setPhone(resident.getContactPhone()); customer.setUserCode(resident.getEmployeeCode()); -// hotelOrderDetail.addCustomer(customer); + hotelOrderDetail.addCustomer(customer); } }