# MorDepartmentDTO.java

    package cloud.wconnect.workperformance.pojo.dto.mor;

    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.constraints.NotBlank;

    /**
     * DTO: MOR department
     *
     * @author zc
     * @date 2023/11/22
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public class MorDepartmentDTO {

        /**
         * id
         */
        private Integer id;

        /**
         * 部门 code
         */
        @NotBlank(message = "The code cannot be blank")
        @Length(max = 20, message = "The code is limited 20 characters")
        private String code;

        /**
         * 部门名称
         */
        @Length(max = 60, message = "The desc is limited 60 characters")
        private String desc;

        /**
         * 报告中部门名称
         */
        private String descByReport;
    }