NewsNotice.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. package com.hssx.cloudmodel.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import java.time.LocalDateTime;
  7. import com.baomidou.mybatisplus.annotation.TableField;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import java.io.Serializable;
  10. /**
  11. * <p>
  12. *
  13. * </p>
  14. *
  15. * @author 吴涛涛
  16. * @since 2019-08-10
  17. */
  18. @TableName("tb_news_notice")
  19. public class NewsNotice extends Model<NewsNotice> {
  20. private static final long serialVersionUID=1L;
  21. /**
  22. * 消息盒子表主键
  23. */
  24. @TableId(value = "id", type = IdType.AUTO)
  25. private Integer id;
  26. /**
  27. * 项目id
  28. */
  29. @TableField("project_id")
  30. private Integer projectId;
  31. /**
  32. * 项目名
  33. */
  34. @TableField("project_name")
  35. private String projectName;
  36. /**
  37. * 引用的外部表id(模具,文档,设备)
  38. */
  39. @TableField("ref_id")
  40. private Integer refId;
  41. /**
  42. * 消息提醒类型0-审批,1-保养,2-告警
  43. */
  44. @TableField("notice_type")
  45. private Integer noticeType;
  46. /**
  47. * 内容
  48. */
  49. @TableField("content")
  50. private String content;
  51. /**
  52. * 时间
  53. */
  54. @TableField("indate")
  55. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  56. private LocalDateTime indate;
  57. public Integer getId() {
  58. return id;
  59. }
  60. public void setId(Integer id) {
  61. this.id = id;
  62. }
  63. public Integer getProjectId() {
  64. return projectId;
  65. }
  66. public void setProjectId(Integer projectId) {
  67. this.projectId = projectId;
  68. }
  69. public String getProjectName() {
  70. return projectName;
  71. }
  72. public void setProjectName(String projectName) {
  73. this.projectName = projectName;
  74. }
  75. public Integer getRefId() {
  76. return refId;
  77. }
  78. public void setRefId(Integer refId) {
  79. this.refId = refId;
  80. }
  81. public Integer getNoticeType() {
  82. return noticeType;
  83. }
  84. public void setNoticeType(Integer noticeType) {
  85. this.noticeType = noticeType;
  86. }
  87. public String getContent() {
  88. return content;
  89. }
  90. public void setContent(String content) {
  91. this.content = content;
  92. }
  93. public LocalDateTime getIndate() {
  94. return indate;
  95. }
  96. public void setIndate(LocalDateTime indate) {
  97. this.indate = indate;
  98. }
  99. @Override
  100. protected Serializable pkVal() {
  101. return this.id;
  102. }
  103. @Override
  104. public String toString() {
  105. return "NewsNotice{" +
  106. "id=" + id +
  107. ", projectId=" + projectId +
  108. ", projectName=" + projectName +
  109. ", refId=" + refId +
  110. ", noticeType=" + noticeType +
  111. ", content=" + content +
  112. ", indate=" + indate +
  113. "}";
  114. }
  115. }