package com.boying.entity;
|
|
import com.boying.common.BaseEntity;
|
import com.boying.common.SystemConfigProperties;
|
import com.boying.common.util.SpringUtils;
|
import com.boying.common.util.StringUtil;
|
|
import javax.persistence.Entity;
|
import javax.persistence.Table;
|
|
@Table(name = "ziLiaoData")
|
@Entity
|
public class ZiLiaoData extends BaseEntity {
|
|
private String name;
|
private Long dirId;
|
private double time;
|
private String type;
|
private String ziLiaoPath;
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public Long getDirId() {
|
return dirId;
|
}
|
|
public void setDirId(Long dirId) {
|
this.dirId = dirId;
|
}
|
|
public double getTime() {
|
return time;
|
}
|
|
public void setTime(double time) {
|
this.time = time;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public String getZiLiaoPath() {
|
if(!StringUtil.isNullOrEmpty(ziLiaoPath)){
|
SystemConfigProperties systemConfigProperties = SpringUtils.getBean("systemConfigProperties");
|
String img2 = "";
|
img2+= systemConfigProperties.getIp()+ systemConfigProperties.getShowImg2()+ziLiaoPath;
|
return img2;
|
}
|
return ziLiaoPath;
|
}
|
|
public void setZiLiaoPath(String ziLiaoPath) {
|
this.ziLiaoPath = ziLiaoPath;
|
}
|
}
|