Преглед изворни кода

入住记录添加联系人id

qh пре 2 година
родитељ
комит
329a281d37

+ 1 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/service/impl/BusRoomBookingOrdersServiceImpl.java

@@ -873,6 +873,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
         SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
         livingOrder.setLivingOrderNo("D"+sdf.format(System.currentTimeMillis()));
         livingOrder.setArrivalTime(new Date());// todo 这个地方的入住开始时间应该怎么算
+        if(customers.size() > 0) livingOrder.setContactId(customers.get(0).getCustomerId());
         roomsLivingOrderService.save(livingOrder);
         CesRooms room = roomsService.getById(bkRoom.getRoomId());
         if(room==null) throw new JeecgBootException("房间不存在");