# UpdateDepartmentDTO.java

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

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

    import jakarta.validation.constraints.Max;
    import jakarta.validation.constraints.NotBlank;

    /**
     * DTO：Update Department
     *
     * @author yyt
     * 2023/7/1
     */
    @Data
    public class UpdateDepartmentDTO {

        /**
         * 部门 code
         */
        @Length(max = 20, message = "the departmentCode max length is 20")
        private String departmentCode;

        /**
         * 名称
         */
        @NotBlank(message = "the name must not be blank")
        @Length(max = 255, message = "the name max length is 255")
        private String name;

        /**
         * 排序
         */
        @Max(value = 9999, message = "the sort max is 9999")
        private Integer sort;

    }