# BgSchedulerDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.badguest;

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

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import java.io.Serial;
    import java.io.Serializable;

    /**
     * 调度任务DTO
     */
    @Data
    public class BgSchedulerDTO implements Serializable {
        @Serial
        private static final long serialVersionUID = 1L;

        /**
         * 主键ID
         */
        private String id;
        /**
         * 资产ID
         */
        private Integer propertyId;
        /**
         * 3：Arrivals Detailed/service 报告缺失 4：Guest-In-House/service 报告缺失 5:Reservations – made Yesterday/service 报告缺失
         */
        @NotNull(message = "the scheduler Category must not be null")
        @Range(min = 3, max = 5, message = "the scheduler Category is invalid")
        private Integer category;

        /**
         * 任务状态
         */
        @NotNull(message = "the scheduler status must not be null")
        @Range(min = 0, max = 1, message = "the scheduler status is invalid")
        private Integer status;

        /**
         * 开始时间戳
         */
        @NotNull(message = "the scheduler startDate must not be null")
        private Long startDate;

        /**
         * 触发时间规则
         */
        @NotBlank(message = "the scheduler must not be null")
        private String scheduler;

        /**
         * 任务执行参数
         */
        private String parameters;

    }