admin
2024-04-24 363457b34e0e4f26ffe51aa80ecb227bf7873308
提交 | 用户 | 时间
363457 1 package com.jcdm.system.domain;
A 2
3 import javax.validation.constraints.NotBlank;
4 import javax.validation.constraints.Size;
5 import org.apache.commons.lang3.builder.ToStringBuilder;
6 import org.apache.commons.lang3.builder.ToStringStyle;
7 import com.jcdm.common.core.domain.BaseEntity;
8 import com.jcdm.common.xss.Xss;
9
10 /**
11  * 通知公告表 sys_notice
12  * 
13  * @author jc
14  */
15 public class SysNotice extends BaseEntity
16 {
17     private static final long serialVersionUID = 1L;
18
19     /** 公告ID */
20     private Long noticeId;
21
22     /** 公告标题 */
23     private String noticeTitle;
24
25     /** 公告类型(1通知 2公告) */
26     private String noticeType;
27
28     /** 公告内容 */
29     private String noticeContent;
30
31     /** 公告状态(0正常 1关闭) */
32     private String status;
33
34     public Long getNoticeId()
35     {
36         return noticeId;
37     }
38
39     public void setNoticeId(Long noticeId)
40     {
41         this.noticeId = noticeId;
42     }
43
44     public void setNoticeTitle(String noticeTitle)
45     {
46         this.noticeTitle = noticeTitle;
47     }
48
49     @Xss(message = "公告标题不能包含脚本字符")
50     @NotBlank(message = "公告标题不能为空")
51     @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
52     public String getNoticeTitle()
53     {
54         return noticeTitle;
55     }
56
57     public void setNoticeType(String noticeType)
58     {
59         this.noticeType = noticeType;
60     }
61
62     public String getNoticeType()
63     {
64         return noticeType;
65     }
66
67     public void setNoticeContent(String noticeContent)
68     {
69         this.noticeContent = noticeContent;
70     }
71
72     public String getNoticeContent()
73     {
74         return noticeContent;
75     }
76
77     public void setStatus(String status)
78     {
79         this.status = status;
80     }
81
82     public String getStatus()
83     {
84         return status;
85     }
86
87     @Override
88     public String toString() {
89         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
90             .append("noticeId", getNoticeId())
91             .append("noticeTitle", getNoticeTitle())
92             .append("noticeType", getNoticeType())
93             .append("noticeContent", getNoticeContent())
94             .append("status", getStatus())
95             .append("createBy", getCreateBy())
96             .append("createTime", getCreateTime())
97             .append("updateBy", getUpdateBy())
98             .append("updateTime", getUpdateTime())
99             .append("remark", getRemark())
100             .toString();
101     }
102 }