# HkEfficiencySchedulerDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hkefficiency.scheduler;

    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 HkEfficiencySchedulerDTO implements Serializable {

        @Serial
        private static final long serialVersionUID = 1L;

        /**
         * 主键ID
         */
        private String id;

        /**
         * 资产ID
         */
        private Integer propertyId;

        /**
         * 配置的分类
         */
        @NotNull(message = "The scheduler category cannot be null")
        private Integer category;

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

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

        /**
         * 触发时间规则 [{"everyDay":{"hour":1,"minute":0}},{"everyDay":{"hour":2,"minute":0}}]
         */
        @NotBlank(message = "The scheduler cannot be null")
        private String scheduler;

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

        // -31 days ~ -1 days
        public static final String DATE_RANGE_HK_EFFICIENCY = "-31,-1";
        // 上个月每天
        public static final String DATE_RANGE_HK_OPERATING = "-1";

    }