对输出财务共享的入住人信息去重

This commit is contained in:
lulz1 2024-03-21 21:05:29 +08:00
parent 591ac54dd7
commit 994a8ddeda
2 changed files with 3 additions and 4 deletions

View File

@ -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<HotelOrderDetailCustomer> customers;
// 入离日期内差标

View File

@ -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);
}
}