# OccCompareQuery.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * Query: Occ jump alert compare
     *
     * @author zc
     * @date 2024/04/17
     */
    @Data
    public class OccCompareQuery {

        /**
         * 日期（yyyyMMdd）
         */
        @NotNull(message = "The theDate must not be null")
        private Long theDate;

        /**
         * 比对日期（yyyyMMdd）
         */
        @NotNull(message = "The compareFirstDate must not be null")
        private Long compareFirstDate;

        /**
         * 比对时刻（0 - 23）
         */
        @Range(min = 0, max = 23, message = "The compareFirstHour must be between 0 and 23")
        private Integer compareFirstHour;

        /**
         * 比对日期（yyyyMMdd）
         */
        @NotNull(message = "The compareSecondDate must not be null")
        private Long compareSecondDate;

        /**
         * 比对时刻（0 - 23）
         */
        @Range(min = 0, max = 23, message = "The compareSecondHour must be between 0 and 23")
        private Integer compareSecondHour;
    }