# MorDepartmentSummaryQuery.java

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

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.Pattern;
    import lombok.Data;

    import java.util.List;

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

        /**
         * 开始日期，yyyyMMdd
         */
        @NotBlank(message = "The startDate can not be null.")
        @Pattern(regexp = "^\\d{4}\\d{2}\\d{2}$", message = "The startDate is not valid.")
        private String startDate;

        /**
         * 结束日期，yyyyMMdd
         */
        @NotBlank(message = "The endDate can not be null.")
        @Pattern(regexp = "^\\d{4}\\d{2}\\d{2}$", message = "The endDate is not valid.")
        private String endDate;

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

    }