|
|
@@ -1,6 +1,8 @@
|
|
|
package org.jeecg.modules.business.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import org.jeecg.common.util.TokenUtils;
|
|
|
import org.jeecg.modules.business.entity.BusMeetingRoomScheduleDetail;
|
|
|
import org.jeecg.modules.business.mapper.BusMeetingRoomScheduleDetailMapper;
|
|
|
import org.jeecg.modules.business.service.IBusMeetingRoomScheduleDetailService;
|
|
|
@@ -8,6 +10,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -34,4 +38,15 @@ public class BusMeetingRoomScheduleDetailServiceImpl extends ServiceImpl<BusMeet
|
|
|
if(CollectionUtil.isEmpty(detailList)) return false;
|
|
|
return saveBatch(detailList);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public List<BusMeetingRoomScheduleDetail> fetchByDateRange(LocalDateTime startDate, LocalDateTime endDate,String hotelId){
|
|
|
+ QueryWrapper<BusMeetingRoomScheduleDetail> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq(BusMeetingRoomScheduleDetail.TENANT_ID, TokenUtils.currentTenantId());
|
|
|
+ queryWrapper.eq(BusMeetingRoomScheduleDetail.HOTEL_ID,hotelId);
|
|
|
+ queryWrapper.between(BusMeetingRoomScheduleDetail.MEETING_DATE, startDate,endDate);
|
|
|
+
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
}
|