From 994a8ddedaad8753901281baca6601c665ec0152 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Thu, 21 Mar 2024 21:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=BE=93=E5=87=BA=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E7=9A=84=E5=85=A5=E4=BD=8F=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/chint/domain/aggregates/order/HotelOrderDetail.java | 3 +-- .../factoriy/order_detail/LYOrderExtensionFactoryImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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); } }