Document.java 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. package com.gqy.document.domain;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
  4. import com.gqy.common.annotation.Excel;
  5. import com.gqy.common.config.LinksDeserializer;
  6. import com.gqy.common.core.domain.BaseEntity;
  7. import com.microsoft.schemas.office.office.STInsetMode;
  8. import java.util.ArrayList;
  9. import java.util.Date;
  10. import java.util.List;
  11. /**
  12. * 【请填写功能名称】对象 dc_document
  13. *
  14. * @author raycos
  15. * @date 2024-10-30
  16. */
  17. public class Document extends BaseEntity
  18. {
  19. private static final long serialVersionUID = 1L;
  20. /** 文档ID */
  21. @Excel(name = "文档ID")
  22. private Long id;
  23. /** 文档标题 */
  24. @Excel(name = "文档标题")
  25. private String title;
  26. /** 文档内容 */
  27. @Excel(name = "文档内容")
  28. private String data;
  29. /** 用户ID */
  30. @Excel(name = "用户ID")
  31. private Long user_id;
  32. /** 分类ID */
  33. @Excel(name = "分类ID")
  34. private Long category_id;
  35. /** 是否模板(0否 1是) */
  36. @Excel(name = "是否模板", readConverterExp = "0=否,1=是")
  37. private Integer is_template;
  38. /** 状态(5-使用中 6-已停用 4-已删除) */
  39. @Excel(name = "状态", readConverterExp = "5=使用中,6=已停用,4=已删除")
  40. private Integer status;
  41. /** 创建时间 */
  42. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  43. @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  44. private Date create_time;
  45. /** 更新时间 */
  46. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  47. @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  48. private Date update_time;
  49. /** 创建者 */
  50. @Excel(name = "创建者")
  51. private String create_by;
  52. /** 更新者 */
  53. @Excel(name = "更新者")
  54. private String update_by;
  55. /** 当前用户ID(用于权限控制) */
  56. private Long current_user_id;
  57. /** 分类名称(非数据库字段) */
  58. private String category_name;
  59. /** 用户名称(非数据库字段) */
  60. private String user_name;
  61. /** 分类名称 */
  62. private String type_name;
  63. /** 关联产品ID列表 */
  64. @JsonDeserialize(using = LinksDeserializer.class)
  65. private List<String> links = new ArrayList<>();
  66. /** 关联项目ID列表 */
  67. @JsonDeserialize(using = LinksDeserializer.class)
  68. private List<String> projects = new ArrayList<>();
  69. public List<String> getLinks() {
  70. return links;
  71. }
  72. public void setLinks(List<String> links) {
  73. this.links = links;
  74. }
  75. public List<String> getProjects() {
  76. return projects;
  77. }
  78. public void setProjects(List<String> projects) {
  79. this.projects = projects;
  80. }
  81. public String getType_name() {
  82. return type_name;
  83. }
  84. public void setType_name(String type_name) {
  85. this.type_name = type_name;
  86. }
  87. public Long getCurrent_user_id() {
  88. return current_user_id;
  89. }
  90. public void setCurrent_user_id(Long current_user_id) {
  91. this.current_user_id = current_user_id;
  92. }
  93. // getter和setter方法
  94. public Long getId() {
  95. return id;
  96. }
  97. public void setId(Long id) {
  98. this.id = id;
  99. }
  100. public String getTitle() {
  101. return title;
  102. }
  103. public void setTitle(String title) {
  104. this.title = title;
  105. }
  106. public String getData() {
  107. return data;
  108. }
  109. public void setData(String data) {
  110. this.data = data;
  111. }
  112. public Long getUser_id() {
  113. return user_id;
  114. }
  115. public void setUser_id(Long user_id) {
  116. this.user_id = user_id;
  117. }
  118. public Long getCategory_id() {
  119. return category_id;
  120. }
  121. public void setCategory_id(Long category_id) {
  122. this.category_id = category_id;
  123. }
  124. public Integer getIs_template() {
  125. return is_template;
  126. }
  127. public void setIs_template(Integer is_template) {
  128. this.is_template = is_template;
  129. }
  130. public Integer getStatus() {
  131. return status;
  132. }
  133. public void setStatus(Integer status) {
  134. this.status = status;
  135. }
  136. public Date getCreate_time() {
  137. return create_time;
  138. }
  139. public void setCreate_time(Date create_time) {
  140. this.create_time = create_time;
  141. }
  142. public Date getUpdate_time() {
  143. return update_time;
  144. }
  145. public void setUpdate_time(Date update_time) {
  146. this.update_time = update_time;
  147. }
  148. public String getCreate_by() {
  149. return create_by;
  150. }
  151. public void setCreate_by(String create_by) {
  152. this.create_by = create_by;
  153. }
  154. public String getUpdate_by() {
  155. return update_by;
  156. }
  157. public void setUpdate_by(String update_by) {
  158. this.update_by = update_by;
  159. }
  160. public String getCategory_name() {
  161. return category_name;
  162. }
  163. public void setCategory_name(String category_name) {
  164. this.category_name = category_name;
  165. }
  166. public String getUser_name() {
  167. return user_name;
  168. }
  169. public void setUser_name(String user_name) {
  170. this.user_name = user_name;
  171. }
  172. }