|
@@ -469,8 +469,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
roomsLivingOrderService.list(Wrappers.<BusRoomsLivingOrder>query()
|
|
roomsLivingOrderService.list(Wrappers.<BusRoomsLivingOrder>query()
|
|
|
.eq("booking_order_id",orderId)): new ArrayList<>();
|
|
.eq("booking_order_id",orderId)): new ArrayList<>();
|
|
|
List<String> livingOrderIds = livingOrders.stream().map(r->r.getId()).collect(Collectors.toList());
|
|
List<String> livingOrderIds = livingOrders.stream().map(r->r.getId()).collect(Collectors.toList());
|
|
|
- List<BusLivingCustomer> livingCustomers =livingOrderIds.size()>0? livingCustomerService.list(Wrappers.<BusLivingCustomer>query()
|
|
|
|
|
- .in("living_order_id", livingOrderIds)):new ArrayList<>();
|
|
|
|
|
|
|
+ List<BusLivingCustomerVo> livingCustomers = livingOrderIds.size()>0? livingCustomerService.queryCustomVoList(livingOrderIds):new ArrayList<>();
|
|
|
livingRooms.forEach(r->{
|
|
livingRooms.forEach(r->{
|
|
|
Optional<BusRoomsLivingOrder> opLvOrder = livingOrders.stream().filter(a->a.getBookingRoomId().equals(r.getId())).findFirst();
|
|
Optional<BusRoomsLivingOrder> opLvOrder = livingOrders.stream().filter(a->a.getBookingRoomId().equals(r.getId())).findFirst();
|
|
|
|
|
|
|
@@ -488,7 +487,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
int daysBetween = (int) TimeUnit.DAYS.convert(millisDiff, TimeUnit.MILLISECONDS) + 1;
|
|
int daysBetween = (int) TimeUnit.DAYS.convert(millisDiff, TimeUnit.MILLISECONDS) + 1;
|
|
|
order.setDayCount(daysBetween);
|
|
order.setDayCount(daysBetween);
|
|
|
}
|
|
}
|
|
|
- List<BusLivingCustomer> currentLivingCustomers = livingCustomers.stream().filter(s->s.getLivingOrderId().equals(order.getId())).collect(Collectors.toList());
|
|
|
|
|
|
|
+ List<BusLivingCustomerVo> currentLivingCustomers = livingCustomers.stream().filter(s->s.getLivingOrderId().equals(order.getId())).collect(Collectors.toList());
|
|
|
List<BusLivingLayoutDayPrice> lvDayPrices = livingLayoutDayPriceService.list(Wrappers.<BusLivingLayoutDayPrice>query().eq("living_order_id",order.getId()));
|
|
List<BusLivingLayoutDayPrice> lvDayPrices = livingLayoutDayPriceService.list(Wrappers.<BusLivingLayoutDayPrice>query().eq("living_order_id",order.getId()));
|
|
|
r.setLivingOrder(order);
|
|
r.setLivingOrder(order);
|
|
|
r.setLivingDayPrices(lvDayPrices);
|
|
r.setLivingDayPrices(lvDayPrices);
|
|
@@ -1908,7 +1907,11 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
newCustomer.setTenantId(user.getRelTenantIds());
|
|
newCustomer.setTenantId(user.getRelTenantIds());
|
|
|
newCustomer.setName(info.getCusName());
|
|
newCustomer.setName(info.getCusName());
|
|
|
newCustomer.setPhone(info.getCusPhone());
|
|
newCustomer.setPhone(info.getCusPhone());
|
|
|
- newCustomer.setCertType(1); // 身份证
|
|
|
|
|
|
|
+ newCustomer.setGender(info.getGender());
|
|
|
|
|
+ newCustomer.setCertNo(info.getCertNo());
|
|
|
|
|
+ newCustomer.setCertType(info.getCertType());
|
|
|
|
|
+ newCustomer.setAddress(info.getAddress());
|
|
|
|
|
+ newCustomer.setNation(info.getNation());
|
|
|
customerService.save(newCustomer);
|
|
customerService.save(newCustomer);
|
|
|
customer = newCustomer;
|
|
customer = newCustomer;
|
|
|
order.setContactId(newCustomer.getId());
|
|
order.setContactId(newCustomer.getId());
|
|
@@ -1920,7 +1923,9 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
BusLivingCustomer firstCustomer = customers.get(0);
|
|
BusLivingCustomer firstCustomer = customers.get(0);
|
|
|
firstCustomer.setCustomerId(customer.getId());
|
|
firstCustomer.setCustomerId(customer.getId());
|
|
|
firstCustomer.setCustomerName(customer.getName());
|
|
firstCustomer.setCustomerName(customer.getName());
|
|
|
|
|
+ firstCustomer.setGender(customer.getGender());
|
|
|
firstCustomer.setPhone(customer.getPhone());
|
|
firstCustomer.setPhone(customer.getPhone());
|
|
|
|
|
+ firstCustomer.setCertType(customer.getCertType());
|
|
|
firstCustomer.setCertNo(customer.getCertNo());
|
|
firstCustomer.setCertNo(customer.getCertNo());
|
|
|
livingCustomerService.updateById(firstCustomer);
|
|
livingCustomerService.updateById(firstCustomer);
|
|
|
}
|
|
}
|