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;
|
import javax.persistence.Transient;
|
|
@Table(name = "user")
|
@Entity
|
public class User extends BaseEntity {
|
|
private String name;//姓名
|
private String phone;//电话
|
private String loginName;//登录名
|
private String password;//密码
|
private String img;//头像
|
private String idCard;
|
private Long deptId;
|
private int sumTime;//学习总时长
|
private String openid;
|
private String code;
|
|
@Transient
|
private int pdfs;
|
@Transient
|
private int videos;
|
@Transient
|
private double time;
|
@Transient
|
private String deptName;
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public String getLoginName() {
|
return loginName;
|
}
|
|
public void setLoginName(String loginName) {
|
this.loginName = loginName;
|
}
|
|
public String getPassword() {
|
return password;
|
}
|
|
public void setPassword(String password) {
|
this.password = password;
|
}
|
|
public String getImg() {
|
if(!StringUtil.isNullOrEmpty(img)){
|
SystemConfigProperties systemConfigProperties = SpringUtils.getBean("systemConfigProperties");
|
String img2 = "";
|
img2+= systemConfigProperties.getIp()+ systemConfigProperties.getShowImg3()+img;
|
return img2;
|
}
|
return img;
|
}
|
|
public void setImg(String img) {
|
this.img = img;
|
}
|
|
public String getIdCard() {
|
return idCard;
|
}
|
|
public void setIdCard(String idCard) {
|
this.idCard = idCard;
|
}
|
|
public Long getDeptId() {
|
return deptId;
|
}
|
|
public void setDeptId(Long deptId) {
|
this.deptId = deptId;
|
}
|
|
public int getPdfs() {
|
return pdfs;
|
}
|
|
public void setPdfs(int pdfs) {
|
this.pdfs = pdfs;
|
}
|
|
public int getVideos() {
|
return videos;
|
}
|
|
public void setVideos(int videos) {
|
this.videos = videos;
|
}
|
|
public double getTime() {
|
return time;
|
}
|
|
public void setTime(double time) {
|
this.time = time;
|
}
|
|
public int getSumTime() {
|
return sumTime;
|
}
|
|
public void setSumTime(int sumTime) {
|
this.sumTime = sumTime;
|
}
|
|
public String getDeptName() {
|
return deptName;
|
}
|
|
public void setDeptName(String deptName) {
|
this.deptName = deptName;
|
}
|
|
public String getOpenid() {
|
return openid;
|
}
|
|
public void setOpenid(String openid) {
|
this.openid = openid;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public void setCode(String code) {
|
this.code = code;
|
}
|
}
|