ZxNotice.java 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. package com.ruoyi.system.domain.notice;
  2. import java.util.List;
  3. import java.util.Date;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import org.apache.commons.lang3.builder.ToStringBuilder;
  6. import org.apache.commons.lang3.builder.ToStringStyle;
  7. import com.ruoyi.common.annotation.Excel;
  8. import com.ruoyi.common.core.domain.BaseEntity;
  9. import org.springframework.beans.factory.annotation.Value;
  10. /**
  11. * 政协通知公告对象 zx_notice
  12. *
  13. * @author boman
  14. * @date 2024-03-05
  15. */
  16. public class ZxNotice extends BaseEntity
  17. {
  18. private static final long serialVersionUID = 1L;
  19. /** 公告ID */
  20. private Long zxNoticeId;
  21. /** 公告标题 */
  22. @Excel(name = "公告标题")
  23. private String noticeTitle;
  24. /** 公告类型(字典值) */
  25. @Excel(name = "公告类型", readConverterExp = "字=典值")
  26. private String noticeType;
  27. /** 公告内容 */
  28. @Excel(name = "公告内容")
  29. private String noticeContent;
  30. /** 公告状态(0正常 1关闭) */
  31. @Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")
  32. private String status;
  33. /** 发布人 */
  34. @Excel(name = "发布人")
  35. private String issuer;
  36. /** 发布单位 */
  37. @Excel(name = "发布单位")
  38. private String issuerDept;
  39. /** 发布单位id */
  40. @Excel(name = "发布单位id")
  41. private Long issuerDeptId;
  42. /** 发布时间 */
  43. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  44. @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  45. private Date issuerTime;
  46. /**
  47. * 判断已读未读
  48. */
  49. @Value("N")
  50. private String type;
  51. /** 用户与政协通知公告关联信息 */
  52. private List<ZxUserNotice> zxUserNoticeList;
  53. public String getType() {
  54. return type;
  55. }
  56. public void setType(String type) {
  57. this.type = type;
  58. }
  59. public void setZxNoticeId(Long zxNoticeId)
  60. {
  61. this.zxNoticeId = zxNoticeId;
  62. }
  63. public Long getZxNoticeId()
  64. {
  65. return zxNoticeId;
  66. }
  67. public void setNoticeTitle(String noticeTitle)
  68. {
  69. this.noticeTitle = noticeTitle;
  70. }
  71. public String getNoticeTitle()
  72. {
  73. return noticeTitle;
  74. }
  75. public void setNoticeType(String noticeType)
  76. {
  77. this.noticeType = noticeType;
  78. }
  79. public String getNoticeType()
  80. {
  81. return noticeType;
  82. }
  83. public void setNoticeContent(String noticeContent)
  84. {
  85. this.noticeContent = noticeContent;
  86. }
  87. public String getNoticeContent()
  88. {
  89. return noticeContent;
  90. }
  91. public void setStatus(String status)
  92. {
  93. this.status = status;
  94. }
  95. public String getStatus()
  96. {
  97. return status;
  98. }
  99. public void setIssuer(String issuer)
  100. {
  101. this.issuer = issuer;
  102. }
  103. public String getIssuer()
  104. {
  105. return issuer;
  106. }
  107. public void setIssuerDept(String issuerDept)
  108. {
  109. this.issuerDept = issuerDept;
  110. }
  111. public String getIssuerDept()
  112. {
  113. return issuerDept;
  114. }
  115. public void setIssuerDeptId(Long issuerDeptId)
  116. {
  117. this.issuerDeptId = issuerDeptId;
  118. }
  119. public Long getIssuerDeptId()
  120. {
  121. return issuerDeptId;
  122. }
  123. public void setIssuerTime(Date issuerTime)
  124. {
  125. this.issuerTime = issuerTime;
  126. }
  127. public Date getIssuerTime()
  128. {
  129. return issuerTime;
  130. }
  131. public List<ZxUserNotice> getZxUserNoticeList()
  132. {
  133. return zxUserNoticeList;
  134. }
  135. public void setZxUserNoticeList(List<ZxUserNotice> zxUserNoticeList)
  136. {
  137. this.zxUserNoticeList = zxUserNoticeList;
  138. }
  139. @Override
  140. public String toString() {
  141. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  142. .append("zxNoticeId", getZxNoticeId())
  143. .append("noticeTitle", getNoticeTitle())
  144. .append("noticeType", getNoticeType())
  145. .append("noticeContent", getNoticeContent())
  146. .append("status", getStatus())
  147. .append("issuer", getIssuer())
  148. .append("issuerDept", getIssuerDept())
  149. .append("issuerDeptId", getIssuerDeptId())
  150. .append("issuerTime", getIssuerTime())
  151. .append("createBy", getCreateBy())
  152. .append("createTime", getCreateTime())
  153. .append("updateBy", getUpdateBy())
  154. .append("updateTime", getUpdateTime())
  155. .append("remark", getRemark())
  156. .append("zxUserNoticeList", getZxUserNoticeList())
  157. .toString();
  158. }
  159. }