| | |
| | | import java.util.List;
|
| | | import javax.validation.constraints.Email;
|
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.NotNull;
|
| | | import javax.validation.constraints.Size;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | |
| | | private String deptName;
|
| | |
|
| | | /** 显示顺序 */
|
| | | private String orderNum;
|
| | | private Integer orderNum;
|
| | |
|
| | | /** 负责人 */
|
| | | private String leader;
|
| | |
| | |
|
| | | /** 父部门名称 */
|
| | | private String parentName;
|
| | |
|
| | | /** 部门编号 */
|
| | | private String deptNick;
|
| | |
|
| | | /** 子部门 */
|
| | | private List<SysDept> children = new ArrayList<SysDept>();
|
| | |
| | | this.deptName = deptName;
|
| | | }
|
| | |
|
| | | @NotBlank(message = "显示顺序不能为空")
|
| | | public String getOrderNum()
|
| | | @NotNull(message = "显示顺序不能为空")
|
| | | public Integer getOrderNum()
|
| | | {
|
| | | return orderNum;
|
| | | }
|
| | |
|
| | | public void setOrderNum(String orderNum)
|
| | | public void setOrderNum(Integer orderNum)
|
| | | {
|
| | | this.orderNum = orderNum;
|
| | | }
|
| | |
| | | this.children = children;
|
| | | }
|
| | |
|
| | | public String getDeptNick() {
|
| | | return deptNick;
|
| | | }
|
| | |
|
| | | public void setDeptNick(String deptNick) {
|
| | | this.deptNick = deptNick;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String toString() {
|
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|