派生自 projectDept/qhighschool

EricsHu
2022-12-05 068fc7f2e81178e55fa191a13709af64b1a163f6
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
package com.qxueyou.scc.portal.information.model;
 
 
//sa_information
 
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.qxueyou.scc.base.model.ITrace;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Proxy;
import org.springframework.format.annotation.DateTimeFormat;
 
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
 
//@Proxy(lazy = false)
@Entity
@Table( name = "sa_information")
public class Information  implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    //草稿 draft
    public static final String DRAFT_STATUS = "draft";
    //上架
    public static final String UP_STATUS = "up";
    //下架
    public static final String DOWN_STATUS = "down";
 
 
    public Information() {
 
    }
 
    public Information(String id, String title, String type, String thumbnailUrl, Date createTime, Date updateTime, String status, Integer browseCount, String attachment, String content, Date dateTime, String subColumn, String videoUrl, String numbers, String competition, Integer deleteFlag) {
        this.id = id;
        this.title = title;
        this.type = type;
        this.thumbnailUrl = thumbnailUrl;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.status = status;
        this.browseCount = browseCount;
        this.attachment = attachment;
        this.content = content;
        this.dateTime = dateTime;
        this.subColumn = subColumn;
        this.videoUrl = videoUrl;
        this.numbers = numbers;
        this.competition = competition;
        this.deleteFlag = deleteFlag;
    }
 
 
    private  String id;
    public void setId(String id) {
        this.id = id;
    }
 
    @Id
    @GeneratedValue(generator = "hibernate-uuid")
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @Column(name = "Id", unique = true, nullable = false, length = 32)
    public String getId() {
        return id;
    }
    //文章标题
    private String title;
 
    //文章类型
    //examBriefing 走进大赛
    // qualifiedSet 通知公告
    // policiesRegulations 新闻中心
    // examinationGuide 资料下载
    // popularInformation 联系方式
    // occupationalStandard
    private String type;
 
    //缩略图
    private String thumbnailUrl;
 
 
    private Date createTime;
 
    private Date updateTime;
    //状态
    private String status;
 
    //浏览数
    //BROWSE_COUNT browseCount
    private Integer browseCount;
 
    //附件
    private String attachment;
 
//    //工种编号
//    private String occupationCode;
 
    //文章内容
    private String content;
 
    //发布时间
    private Date dateTime;
 
    //子栏目
    private String subColumn;
 
    //视频路径
    private String videoUrl;
 
    //届数
    private String numbers;
 
    //竞赛文件路径
    private String competition;
 
    //是否删除:0未删除 1删除
    private Integer deleteFlag;
 
//    //初赛成绩路径
//    private String preliminaries;
 
    //决赛成绩路径
//    private String finals;
 
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
    @Column(name = "THUMBNAIL_URL", nullable = false, length = 100)
    public String getThumbnailUrl() {
        return thumbnailUrl;
    }
 
    public void setThumbnailUrl(String thumbnailUrl) {
        this.thumbnailUrl = thumbnailUrl;
    }
    @Column(name = "CREATE_TIME",  length = 19)
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    public Date getCreateTime() {
        return createTime;
    }
 
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    @Column(name = "UPDATE_TIME",  length = 19)
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    @Column(name = "STATUS", length = 10)
    public String getStatus() {
        return status;
    }
 
    public void setStatus(String status) {
        this.status = status;
    }
 
    @Column(name = "BROWSE_COUNT" ,length = 20)
    public Integer getBrowseCount() {
        return browseCount;
    }
 
    public void setBrowseCount(Integer browseCount) {
        this.browseCount = browseCount;
    }
 
    @Column(name = "ATTACHMENT" ,length = 100)
    public String getAttachment() {
        return attachment;
    }
 
    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }
    @Column(name = "CONTENT" )
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
    @Column(name = "DATE_TIME",  length = 19)
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonIgnore
    public Date getDateTime() {
        return dateTime;
    }
 
    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }
 
    @Column(name = "SUB_COLUMN" )
    public String getSubColumn() {
        return subColumn;
    }
 
    public void setSubColumn(String subColumn) {
        this.subColumn = subColumn;
    }
    @Column(name = "VIDEO_URL" )
    public String getVideoUrl() {
        return videoUrl;
    }
 
    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }
    @Column(name = "NUMBERS" )
    public String getNumbers() {
        return numbers;
    }
    public void setNumbers(String numbers) {
        this.numbers = numbers;
    }
    @Column(name = "COMPETITION" )
    public String getCompetition() {
        return competition;
    }
 
    public void setCompetition(String competition) {
        this.competition = competition;
    }
 
    @Column(name = "DELTE_FLAG" )
    public Integer getDeleteFlag() {
        return deleteFlag;
    }
 
    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
 
 
    //    public String getPreliminaries() {
//        return preliminaries;
//    }
//
//    public void setPreliminaries(String preliminaries) {
//        this.preliminaries = preliminaries;
//    }
//
//    public String getFinals() {
//        return finals;
//    }
//
//    public void setFinals(String finals) {
//        this.finals = finals;
//    }
}