|
|
@ -16,6 +16,7 @@ package com.epmet.dto.form; |
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/ |
|
|
|
|
|
|
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|
|
|
import lombok.Data; |
|
|
|
import org.hibernate.validator.constraints.Length; |
|
|
|
|
|
|
@ -31,20 +32,21 @@ import java.io.Serializable; |
|
|
|
public class AddDepartmentFormDTO implements Serializable { |
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
|
|
|
|
/** |
|
|
|
* 所属组织机构ID(customer_agency.id) |
|
|
|
*/ |
|
|
|
@NotBlank(message = "组织机构Id不能为空") |
|
|
|
@NotBlank(message = "组织机构Id不能为空",groups = AddDepartmentFormDTO.AddDept.class) |
|
|
|
private String agencyId; |
|
|
|
|
|
|
|
/** |
|
|
|
* 部门名称 |
|
|
|
*/ |
|
|
|
@NotBlank(message = "部门名称不能为空") |
|
|
|
@Length(max=120,message = "部门名称不能超过120个字") |
|
|
|
@NotBlank(message = "部门名称不能为空",groups = AddDepartmentFormDTO.AddDept.class) |
|
|
|
@Length(max=20,message = "部门名称不能超过20个字",groups = AddDepartmentFormDTO.AddDept.class) |
|
|
|
private String departmentName; |
|
|
|
|
|
|
|
public interface AddDept extends CustomerClientShowGroup { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 部门职责 |
|
|
|
*/ |
|
|
|