# BookingWeekServiceImpl.java

    package cloud.wconnect.rateshop.service.booking.impl;

    import cloud.wconnect.rateshop.entity.booking.BookingWeek;
    import cloud.wconnect.rateshop.mapper.booking.BookingWeekMapper;
    import cloud.wconnect.rateshop.service.booking.IBookingWeekService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
    import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
    import org.springframework.stereotype.Service;

    import java.util.List;

    /**
     * <p>
     *  服务实现类
     * </p>
     *
     * @author yyt
     * @since 2024-07-29
     */
    @Service
    @DS("rate_shop")
    public class BookingWeekServiceImpl extends ServiceImpl<BookingWeekMapper, BookingWeek> implements IBookingWeekService {

        /**
         * 查询指定日期范围的入住星期图表分析数据
         *
         * @param propertyIds 资产 id
         * @param startMonth  开始月
         * @param endMonth    结束月
         * @return 入住星期图表分析数据
         * @author yyt
         * @date 2024/7/29
         **/
        @Override
        public List<BookingWeek> list(List<Integer> propertyIds, Integer startMonth, Integer endMonth) {
            return list(new QueryWrapper<BookingWeek>().lambda().in(BookingWeek::getPropertyId, propertyIds)
                    .ge(BookingWeek::getYearMonth, startMonth).le(BookingWeek::getYearMonth, endMonth));
        }

    }