|
@@ -1,7 +1,9 @@
|
|
|
package org.jeecg.modules.business.service.impl;
|
|
package org.jeecg.modules.business.service.impl;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
import org.jeecg.common.util.DateUtils;
|
|
@@ -1204,6 +1206,27 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public IPage<RoomLivingQueryVo> getLivingPageData(Integer status,String keyw, Page<RoomLivingQueryVo> page) {
|
|
|
|
|
+ return baseMapper.getPage(page,status,keyw);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
+ public Boolean setLivingOrderFee(List<BusOrderFee> fees, String livingOrderId) {
|
|
|
|
|
+ if(fees == null || fees.size() == 0) throw new JeecgBootException("参数无效");
|
|
|
|
|
+ fees.forEach(roomFee->{
|
|
|
|
|
+ if(roomFee.getRoomId() == null ||roomFee.getRoomId().isEmpty()) throw new JeecgBootException("房间ID不正确");
|
|
|
|
|
+ roomFee.setLivingOrderId(livingOrderId);
|
|
|
|
|
+ roomFee.setFeeType(1); // 消费
|
|
|
|
|
+ roomFee.setCreateTime(new Date());
|
|
|
|
|
+ roomFee.setDayTime(new Date());
|
|
|
|
|
+ feeService.save(roomFee);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
String getBookingRoomHotelId(BusBookingRooms bookingRoom) {
|
|
String getBookingRoomHotelId(BusBookingRooms bookingRoom) {
|
|
|
return roomsService.getById(bookingRoom.getRoomId()).getHotelId();
|
|
return roomsService.getById(bookingRoom.getRoomId()).getHotelId();
|
|
|
}
|
|
}
|