# OvertimeQuery.java

    package cloud.wconnect.workperformance.pojo.query.mor.overtime;

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

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

    /**
     * Query: overtime
     *
     * @author zc
     * @date 2023/4/1
     */
    @Data
    public class OvertimeQuery {

        /**
         * 1:查询全年；2:查询当月
         */
        @NotNull(message = "The type can not be null.")
        @Range(min = 1, max = 2, message = "The type must be in [1:year, 2:month].")
        private Integer type;

        public final static int TYPE_YEAR = 1;
        public final static int TYPE_MONTH = 2;

        /**
         * 月初时间戳
         */
        @NotNull(message = "The startOfMonth can not be null.")
        private Long startOfMonth;

        /**
         * 工作部门 code
         */
        private List<String> workDepartmentCode;

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

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

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

    }