123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- package com.hssx.cloudmodel.entity;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.extension.activerecord.Model;
- import com.baomidou.mybatisplus.annotation.TableId;
- import java.time.LocalDateTime;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import java.io.Serializable;
- /**
- * <p>
- *
- * </p>
- *
- * @author 吴涛涛
- * @since 2019-08-10
- */
- @TableName("tb_news_notice")
- public class NewsNotice extends Model<NewsNotice> {
- private static final long serialVersionUID=1L;
- /**
- * 消息盒子表主键
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Integer id;
- /**
- * 项目id
- */
- @TableField("project_id")
- private Integer projectId;
- /**
- * 项目名
- */
- @TableField("project_name")
- private String projectName;
- /**
- * 引用的外部表id(模具,文档,设备)
- */
- @TableField("ref_id")
- private Integer refId;
- /**
- * 消息提醒类型0-审批,1-保养,2-告警
- */
- @TableField("notice_type")
- private Integer noticeType;
- /**
- * 内容
- */
- @TableField("content")
- private String content;
- /**
- * 时间
- */
- @TableField("indate")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
- private LocalDateTime indate;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public Integer getProjectId() {
- return projectId;
- }
- public void setProjectId(Integer projectId) {
- this.projectId = projectId;
- }
- public String getProjectName() {
- return projectName;
- }
- public void setProjectName(String projectName) {
- this.projectName = projectName;
- }
- public Integer getRefId() {
- return refId;
- }
- public void setRefId(Integer refId) {
- this.refId = refId;
- }
- public Integer getNoticeType() {
- return noticeType;
- }
- public void setNoticeType(Integer noticeType) {
- this.noticeType = noticeType;
- }
- public String getContent() {
- return content;
- }
- public void setContent(String content) {
- this.content = content;
- }
- public LocalDateTime getIndate() {
- return indate;
- }
- public void setIndate(LocalDateTime indate) {
- this.indate = indate;
- }
- @Override
- protected Serializable pkVal() {
- return this.id;
- }
- @Override
- public String toString() {
- return "NewsNotice{" +
- "id=" + id +
- ", projectId=" + projectId +
- ", projectName=" + projectName +
- ", refId=" + refId +
- ", noticeType=" + noticeType +
- ", content=" + content +
- ", indate=" + indate +
- "}";
- }
- }
|