111
wang-hao-jie
2022-08-25 d90da0759bd93c7f429f6a20bc835782ad927c02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
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;
    }
}