|
|
|
@ -29,18 +29,27 @@ import javax.persistence.Table;
|
|
|
|
|
public class Position extends BaseBean {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="POSITION_NAME")
|
|
|
|
|
@Column(name="NAME")
|
|
|
|
|
@ApiParam(value ="名称" , access ="名称")
|
|
|
|
|
private String positionName;
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
@Column(name="POSITION_CODE")
|
|
|
|
|
@ApiParam(value ="岗位代码" , access ="岗位代码")
|
|
|
|
|
private String positionCode;
|
|
|
|
|
|
|
|
|
|
@Column(name="PARENT_ID")
|
|
|
|
|
@ApiParam(value ="上级岗位" , example ="0" , access ="上级岗位")
|
|
|
|
|
@ApiParam(value ="上级岗位" , example ="-1" , access ="上级岗位")
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
// 默认值 -1
|
|
|
|
|
private Long parentId;
|
|
|
|
|
|
|
|
|
|
public Long getParentId() {
|
|
|
|
|
if(parentId != null) {
|
|
|
|
|
return parentId.longValue();
|
|
|
|
|
}else{
|
|
|
|
|
return parentId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Column(name="RED_PARENT_NAME")
|
|
|
|
|
@ApiParam(value ="上级岗位名称" , access ="上级岗位名称")
|
|
|
|
|