SysNotice.java 3.04 KB
Newer Older
1 2 3 4
package com.zehong.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
耿迪迪's avatar
耿迪迪 committed
5
import com.zehong.common.annotation.Excel;
6 7 8
import com.zehong.common.core.domain.BaseEntity;

/**
耿迪迪's avatar
耿迪迪 committed
9
 * 通知公告对象 sys_notice
10 11
 * 
 * @author zehong
耿迪迪's avatar
耿迪迪 committed
12
 * @date 2023-06-16
13 14 15 16 17 18
 */
public class SysNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告ID */
耿迪迪's avatar
耿迪迪 committed
19
    private Integer noticeId;
20 21

    /** 公告标题 */
耿迪迪's avatar
耿迪迪 committed
22
    @Excel(name = "公告标题")
23 24 25
    private String noticeTitle;

    /** 公告类型(1通知 2公告) */
耿迪迪's avatar
耿迪迪 committed
26
    @Excel(name = "公告类型", readConverterExp = "1=通知,2=公告")
27 28 29
    private String noticeType;

    /** 公告内容 */
耿迪迪's avatar
耿迪迪 committed
30
    @Excel(name = "公告内容")
31 32
    private String noticeContent;

耿迪迪's avatar
耿迪迪 committed
33 34 35 36
    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

37
    /** 公告状态(0正常 1关闭) */
耿迪迪's avatar
耿迪迪 committed
38
    @Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")
39 40
    private String status;

耿迪迪's avatar
耿迪迪 committed
41 42 43 44 45 46 47 48 49 50
    /**
     * 部门
     */
    private Long deptId;

    /**
     * 角色
     */
    private String roles;

耿迪迪's avatar
耿迪迪 committed
51
    public void setNoticeId(Integer noticeId) 
52
    {
耿迪迪's avatar
耿迪迪 committed
53
        this.noticeId = noticeId;
54 55
    }

耿迪迪's avatar
耿迪迪 committed
56
    public Integer getNoticeId() 
57
    {
耿迪迪's avatar
耿迪迪 committed
58
        return noticeId;
59
    }
耿迪迪's avatar
耿迪迪 committed
60
    public void setNoticeTitle(String noticeTitle) 
61 62 63 64
    {
        this.noticeTitle = noticeTitle;
    }

耿迪迪's avatar
耿迪迪 committed
65
    public String getNoticeTitle() 
66 67 68
    {
        return noticeTitle;
    }
耿迪迪's avatar
耿迪迪 committed
69
    public void setNoticeType(String noticeType) 
70 71 72 73
    {
        this.noticeType = noticeType;
    }

耿迪迪's avatar
耿迪迪 committed
74
    public String getNoticeType() 
75 76 77
    {
        return noticeType;
    }
耿迪迪's avatar
耿迪迪 committed
78
    public void setNoticeContent(String noticeContent) 
79 80 81 82
    {
        this.noticeContent = noticeContent;
    }

耿迪迪's avatar
耿迪迪 committed
83
    public String getNoticeContent() 
84 85 86
    {
        return noticeContent;
    }
耿迪迪's avatar
耿迪迪 committed
87 88 89 90
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
91

耿迪迪's avatar
耿迪迪 committed
92 93 94 95 96
    public Long getUserId() 
    {
        return userId;
    }
    public void setStatus(String status) 
97 98 99 100
    {
        this.status = status;
    }

耿迪迪's avatar
耿迪迪 committed
101
    public String getStatus() 
102 103 104 105
    {
        return status;
    }

耿迪迪's avatar
耿迪迪 committed
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

122 123 124 125 126 127 128
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("noticeId", getNoticeId())
            .append("noticeTitle", getNoticeTitle())
            .append("noticeType", getNoticeType())
            .append("noticeContent", getNoticeContent())
耿迪迪's avatar
耿迪迪 committed
129
            .append("userId", getUserId())
130 131 132 133 134 135 136 137 138
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}