# RevenueDailySummaryManualServiceImpl.java

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

    import cloud.wconnect.rateshop.entity.revenue.RevenueDailySummaryManual;
    import cloud.wconnect.rateshop.mapper.revenue.RevenueDailySummaryManualMapper;
    import cloud.wconnect.rateshop.service.revenue.IRevenueDailySummaryManualService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
    import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
    import org.springframework.stereotype.Service;

    import java.util.List;

    /**
     * <p>
     * Daily Sumamry 手动输入的酒店运营相关信息 服务实现类
     * </p>
     *
     * @author lichen
     * @since 2024-03-26
     */
    @Service
    @DS("rate_shop")
    public class RevenueDailySummaryManualServiceImpl extends ServiceImpl<RevenueDailySummaryManualMapper, RevenueDailySummaryManual> implements IRevenueDailySummaryManualService {

        /**
         * 查询手动维护的运营信息
         *
         * @param propertyId 资产ID
         * @param targetDate 目标日期
         * @return java.util.List<cloud.wconnect.rateshop.entity.revenue.RevenueDailySummaryManual>
         * @author lichen
         * @date 2024/3/27
         */
        @Override
        public List<RevenueDailySummaryManual> listByPropertyIdAndDate(Integer propertyId, long targetDate) {
            return list(new LambdaQueryWrapper<RevenueDailySummaryManual>().eq(RevenueDailySummaryManual::getPropertyId, propertyId)
                    .eq(RevenueDailySummaryManual::getTheDate, targetDate));
        }

        /**
         * 查询手动维护的运营信息
         *
         * @param propertyId 资产ID
         * @param targetDate 目标日期
         * @param hour       小时数
         * @return cloud.wconnect.rateshop.entity.revenue.RevenueDailySummaryManual
         * @author lichen
         * @date 2024/3/28
         */
        @Override
        public RevenueDailySummaryManual get(Integer propertyId, long targetDate, Integer hour) {
            return getOne(new LambdaQueryWrapper<RevenueDailySummaryManual>()
                    .eq(RevenueDailySummaryManual::getPropertyId, propertyId)
                    .eq(RevenueDailySummaryManual::getTheDate, targetDate)
                    .eq(RevenueDailySummaryManual::getTheHour, hour));
        }
    }