ZxNotice.java 4.9 KB

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