# GmwrWeeksQuery.java

    package cloud.wconnect.workperformance.pojo.query.gmwr;

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

    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Size;
    import java.util.List;

    /**
     * Query: 周数据查询条件
     *
     * @author zc
     * @date 2024/10/15
     */
    @Data
    public class GmwrWeeksQuery {
        /**
         * 页码
         */
        @NotNull(message = "The page cannot be null")
        private Integer page;

        /**
         * 每页显示条数
         */
        @NotNull(message = "The size cannot be null")
        private Integer size;

        /**
         * 开始月份(yyyyMM)
         */
        private Long startMonth;

        /**
         * 结束月份(yyyyMM)
         */
        private Long endMonth;

        /**
         * 状态 1:draft-草稿 2:complete-已完成
         */
        @Size(max = 2, message = "The status max size is 2")
        private List<@Range(min = 1, max = 2, message = "The status must in [1:draft 2:complete]") Integer> status;
    }