JSD-8834 自定义授权&审计
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.
 
 
 

167 lines
3.6 KiB

package com.fr.plugin.teshe.entity;
import com.fr.plugin.teshe.controller.TieSheController;
import com.fr.stable.AssistUtils;
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;
import com.crcc.org.entity.OrgEntity;
//@Entity
//@Table(name = "sys_org")
public class TieSheSysOrgEntity extends BaseEntity{
public void fromOrgEntity(OrgEntity entity){
this.setId(entity.getId());
if(TieSheController.isLocal){
this.setOrganId(entity.getJigouId());
}
else{
this.setOrganId(entity.getId());
}
this.setOrder(entity.getSortCode());
this.setOrganName(entity.getName());
this.setShortName(entity.getShortName());
this.setPid(entity.getParentId());
this.setType(entity.getOrgType());
this.setOrganCode(entity.getCode());
this.setHrScope(entity.getHrScope());
this.setFullPath(entity.getFullPathName());
}
@Column(name = "jigou_id")
private String organId;
@Column(name = "sort_code")
private String order;
@Column(name = "name")
private String organName;
@Column(name = "short_Name")
private String shortName;
@Column(name = "parent_id")
private String pid;
@Column(name = "org_type")
private int type;
@Column(name = "code")
private String organCode;
@Column(name = "hr_scope") // 对应人事组织范围 格式为hr_123_1,二级单位id_单位id_组织类型'
private String hrScope;
@Column(name = "full_path_name")
private String fullPath;
@Column(name = "accept_type")
private Integer acceptType;
@Column(name = "virtual_flag")
private Boolean virtualFlag;
@Column(name = "delete_flag")
private Boolean deleteFlag;
public String getShortName() {
return shortName;
}
public void setShortName(String shortName) {
this.shortName = shortName;
}
public void setAcceptType(Integer acceptType) {
this.acceptType = acceptType;
}
public void setVirtualFlag(Boolean virtualFlag) {
this.virtualFlag = virtualFlag;
}
public void setDeleteFlag(Boolean deleteFlag) {
this.deleteFlag = deleteFlag;
}
public Integer getAcceptType() {
return acceptType;
}
public Boolean getVirtualFlag() {
return virtualFlag;
}
public Boolean getDeleteFlag() {
return deleteFlag;
}
public String getFullPath() {
return fullPath;
}
public void setFullPath(String fullPath) {
this.fullPath = fullPath;
}
public void setOrganId(String organId) {
this.organId = organId;
}
public void setOrder(String order) {
this.order = order;
}
public void setOrganName(String organName) {
this.organName = organName;
}
public void setPid(String pid) {
this.pid = pid;
}
public void setType(int type) {
this.type = type;
}
public void setOrganCode(String organCode) {
this.organCode = organCode;
}
public void setHrScope(String hrScope) {
this.hrScope = hrScope;
}
public String getOrganId() {
return organId;
}
public String getOrder() {
return order;
}
public String getOrganName() {
return organName;
}
public String getPid() {
return pid;
}
public int getType() {
return type;
}
public String getOrganCode() {
return organCode;
}
public String getHrScope() {
return hrScope;
}
}