You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.4 KiB
73 lines
1.4 KiB
2 years ago
|
package com.fr.plugin.entitys;
|
||
|
|
||
|
import com.fr.plugin.beans.MyDepBean;
|
||
|
import com.fr.stable.db.entity.BaseEntity;
|
||
|
import com.fr.third.javax.persistence.Column;
|
||
|
import com.fr.third.javax.persistence.Entity;
|
||
|
import com.fr.third.javax.persistence.Table;
|
||
|
|
||
|
@Entity
|
||
|
@Table(
|
||
|
name = "fine_yt_dep"
|
||
|
)
|
||
|
public class YtDepEntity extends BaseEntity {
|
||
|
@Column(
|
||
|
name = "name"
|
||
|
)
|
||
|
private String name;
|
||
|
@Column(
|
||
|
name = "depName"
|
||
|
)
|
||
|
private String depName;
|
||
|
|
||
|
@Column(
|
||
|
name = "top1"
|
||
|
)
|
||
|
private int top1;
|
||
|
@Column(
|
||
|
name = "parentId"
|
||
|
)
|
||
|
private String parentId;
|
||
|
|
||
|
public String getName() {
|
||
|
return name;
|
||
|
}
|
||
|
|
||
|
public void setName(String name) {
|
||
|
this.name = name;
|
||
|
}
|
||
|
|
||
|
public String getDepName() {
|
||
|
return depName;
|
||
|
}
|
||
|
|
||
|
public void setDepName(String depName) {
|
||
|
this.depName = depName;
|
||
|
}
|
||
|
|
||
|
public int getTop1() {
|
||
|
return top1;
|
||
|
}
|
||
|
|
||
|
public void setTop1(int top) {
|
||
|
this.top1 = top;
|
||
|
}
|
||
|
|
||
|
public String getParentId() {
|
||
|
return parentId;
|
||
|
}
|
||
|
|
||
|
public void setParentId(String parentId) {
|
||
|
this.parentId = parentId;
|
||
|
}
|
||
|
public MyDepBean createBean(){
|
||
|
MyDepBean bean=new MyDepBean();
|
||
|
bean.setDepName(this.depName);
|
||
|
bean.setId(this.getId());
|
||
|
bean.setName(this.name);
|
||
|
bean.setParentId(this.parentId);
|
||
|
bean.setOrder(this.top1);
|
||
|
return bean;
|
||
|
}
|
||
|
}
|