# AttendanceEmployeeQuery.java

    package cloud.wconnect.workperformance.pojo.query.sva.employee;

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

    import jakarta.validation.constraints.NotNull;

    /**
     * Query类: 考勤系统员工信息表相关的检索条件
     *
     * @author zc
     * @date 2023/2/21
     */
    @Data
    public class AttendanceEmployeeQuery {

        /**
         * 当前页码
         */
        @NotNull(message = "The page must not be null.")
        private Integer page;

        /**
         * 每页条数
         */
        @NotNull(message = "The size must not be null.")
        private Integer size;

        /**
         * status(0:Close;1:Open)
         */
        @Range(min = 0, max = 1, message = "The status must limit in [0:Close, 1:Open].")
        private Integer status;

        /**
         * 部门分类id
         */
        private Integer depCategoryId;

        /**
         * 员工打卡编号
         */
        private String positionId;

        /**
         * 部门编号
         */
        private String departmentCode;

        /**
         * 员工名称
         */
        private String empName;

        /**
         * property id
         */
        private Integer propertyId;

        /**
         * 排序字段（1:emp name;2:position id;3:department code;4:department desc;5:dep category id）
         */
        @Range(min = 1, max = 5, message = "The sortBy must limit in [1:emp name, 2:position id, 3:department code, 4:department desc, 5:dep category id].")
        private Integer sortBy;

        public static final int SORT_BY_EMP_NAME = 1;
        public static final int SORT_BY_POSITION_ID = 2;
        public static final int SORT_BY_DEPARTMENT_CODE = 3;
        public static final int SORT_BY_DEPARTMENT_DESC = 4;
        public static final int SORT_BY_DEP_CATEGORY_ID = 5;

        /**
         * 排序（1:正序,2:倒序)
         */
        @Range(min = 1, max = 2, message = "The sortType must limit in [1:asc, 2:desc].")
        private Integer sortType;

        public static final int SORT_TYPE_ASC = 1;
        public static final int SORT_TYPE_DESC = 2;

        /**
         * 工作类型编码
         */
        private String workCategoryCode;

    }