# ExportRevenueQuery.java

    package cloud.wconnect.rateshop.pojo.query.revenue;

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    /**
     * 导出的查询类
     *
     * @author lichen
     * @date 2024/5/17
     */
    @Data
    public class ExportRevenueQuery {

        /**
         * 去年同期的数据源ID
         */
        @Range(min = 1, max = 5, message = "The datasourceIdBySameTimeLastYear must between in [1:Google 2:Expedia 3:Optimand 4:Merlin 5:Lighthouse]")
        private Integer datasourceIdBySameTimeLastYear;

        /**
         * 去年同期的平台ID
         */
        @Range(min = 0, max = 7, message = "The platformIdBySameTimeLastYear must between in [0:Brand 1:Booking.com 2:Priceline 3:Hotels.com 4:Expedia.com 5:Agoda 6:Optimand 7:Merlin]")
        private Integer platformIdBySameTimeLastYear;

        /**
         * 未来14天BAR房价的数据源ID
         */
        @Range(min = 1, max = 5, message = "The datasourceIdByNext14DaysBAR must between in [1:Google 2:Expedia 3:Optimand 4:Merlin 5:Lighthouse]")
        private Integer datasourceIdByNext14DaysBAR;

        /**
         * 未来14天BAR房价的平台ID
         */
        @Range(min = 0, max = 7, message = "The platformIdByNext14DaysBAR must between in [0:Brand 1:Booking.com 2:Priceline 3:Hotels.com 4:Expedia.com 5:Agoda 6:Optimand 7:Merlin]")
        private Integer platformIdByNext14DaysBAR;

        /**
         * 未来14天早鸟价的数据源ID
         */
        @Range(min = 1, max = 5, message = "The datasourceIdByNext14DaysEBR must between in [1:Google 2:Expedia 3:Optimand 4:Merlin 5:Lighthouse]")
        private Integer datasourceIdByNext14DaysEBR;

        /**
         * 未来14天早鸟价的平台ID
         */
        @Range(min = 0, max = 7, message = "The platformIdByNext14DaysEBR must between in [0:Brand 1:Booking.com 2:Priceline 3:Hotels.com 4:Expedia.com 5:Agoda 6:Optimand 7:Merlin]")
        private Integer platformIdByNext14DaysEBR;

        /**
         * 导出类型
         */
        @Range(min = 1, max = 2, message = "The type must between in [1:Export all 2:Export next 14 days rate]")
        private Integer type;

        /**
         * 导出类型
         */
        public static final Integer TYPE_EXPORT_ALL = 1;
        public static final Integer TYPE_EXPORT_NEXT_14_DAYS_RATE = 2;

    }