zj
2025-04-04 8ceb6cd5ba9d7f347f2070a3967f31cc070ef4ef
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
package project.cms;
 
import java.util.Comparator;
import java.util.Date;
 
import javax.persistence.Column;
import javax.persistence.Table;
 
import kernel.bo.EntityObject;
 
/**
 * 用户端内容管理
 */
@Table(name="T_CMS")
public class Cms extends EntityObject implements Comparator<Cms>  {
    private static final long serialVersionUID = -5246000727456595774L;
    /**
     * 标题
     */
    @Column(name="TITLE")
    private String title;
    /**
     * 内容
     */
    @Column(name="CONTENT")
    private String content;
    
    @Column(name="MODEL")
    private String model;
    
    @Column(name="CREATE_TIME")
    private Date createTime;
    private String createTimeStr;
    
    @Column(name="LANGUAGE")
    private String language;
    
    /**
     * 业务代码, 同种内容 不同语言下的code相同
     */
    @Column(name="CONTENT_CODE")
    private String content_code;
 
    public String getContent() {
        return this.content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public Date getCreateTime() {
        return this.createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public String getTitle() {
        return this.title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public String getModel() {
        return model;
    }
 
    public void setModel(String model) {
        this.model = model;
    }
 
    public String getCreateTimeStr() {
        return createTimeStr;
    }
 
    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }
 
    public String getLanguage() {
        return language;
    }
 
    public void setLanguage(String language) {
        this.language = language;
    }
 
    public String getContent_code() {
        return content_code;
    }
 
    public void setContent_code(String content_code) {
        this.content_code = content_code;
    }
 
    @Override
    public int compare(Cms paramT1, Cms paramT2) {
        return -paramT1.getCreateTime().compareTo(paramT2.getCreateTime());
    }
 
}