KnowledgeVo.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. package com.redxun.knowledge.entity.vo;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.mysql.cj.jdbc.Clob;
  6. import com.redxun.knowledge.entity.dao.KnowledgeApprove;
  7. import com.redxun.knowledge.entity.dto.OrganizationDto;
  8. import lombok.Data;
  9. import org.springframework.format.annotation.DateTimeFormat;
  10. import java.util.Date;
  11. import java.util.List;
  12. import java.util.Map;
  13. @Data
  14. public class KnowledgeVo {
  15. // 主键
  16. private String pkId;
  17. // 知识分类ID
  18. private String categoryId;
  19. // 知识类型 1-文档知识 2-维基知识
  20. private Integer type;
  21. // 知识类型名称
  22. private String getTypeName() {
  23. if (type != null) {
  24. if (type == 1) {
  25. return "文档知识";
  26. } else if (type == 2) {
  27. return "维基知识";
  28. }
  29. }
  30. return "";
  31. }
  32. // 知识标题
  33. private String titles;
  34. // 作者名称
  35. private String author;
  36. // 知识内容
  37. private String content;
  38. // 简介
  39. private String summary;
  40. // 附件ID
  41. private String attachment;
  42. // 附件名
  43. private String attachmentName;
  44. // 创建时间
  45. @DateTimeFormat(
  46. pattern = "yyyy-MM-dd HH:mm:ss"
  47. )
  48. @JSONField(
  49. format = "yyyy-MM-dd HH:mm:ss"
  50. )
  51. @JsonFormat(
  52. pattern = "yyyy-MM-dd HH:mm:ss",
  53. timezone = "GMT+8"
  54. )
  55. private Date createTime;
  56. // 操作时间
  57. @DateTimeFormat(
  58. pattern = "yyyy-MM-dd HH:mm:ss"
  59. )
  60. @JSONField(
  61. format = "yyyy-MM-dd HH:mm:ss"
  62. )
  63. @JsonFormat(
  64. pattern = "yyyy-MM-dd HH:mm:ss",
  65. timezone = "GMT+8"
  66. )
  67. private Date updateTime;
  68. // 浏览数量
  69. private Integer views;
  70. // 审批状态 1-待节点审核 2-节点驳回 3-待最终审核 4-最终驳回 5-最终通过
  71. private Integer approvalStatus;
  72. // 创建人
  73. private String createBy;
  74. // 操作人
  75. private String updateBy;
  76. private String organizationId;
  77. // 组织架构权限
  78. private OrganizationDto organizationIds;
  79. // 流程节点
  80. private List<KnowledgeApprovalVo> approvals;
  81. // 第一个流程节点
  82. private KnowledgeApprove approvalsFirst;
  83. //所属分类
  84. private KnowledgeCategoryAdminVo knowledgeCategoryAdminVo;
  85. // 审核人Id
  86. private String approverId;
  87. // 操作人姓名
  88. private String operatorName;
  89. // 是否在当前组织架构权限中(0 在 1 不在 没最终通过时返回为null)
  90. private Integer isOrganizationId;
  91. //审批人名称;可以是人员或者部门名称
  92. private String approverName;
  93. //节点审核时间
  94. @DateTimeFormat(
  95. pattern = "yyyy-MM-dd HH:mm:ss"
  96. )
  97. @JSONField(
  98. format = "yyyy-MM-dd HH:mm:ss"
  99. )
  100. @JsonFormat(
  101. pattern = "yyyy-MM-dd HH:mm:ss",
  102. timezone = "GMT+8"
  103. )
  104. private Date approvalTime;
  105. // 其他参数
  106. private Map<String, Object> params;
  107. // 审批结果
  108. private Integer result;
  109. // 知识Id
  110. private String knowledgerId;
  111. // 审批列表Id
  112. private String approveId;
  113. // 排序
  114. private Integer sort;
  115. private String tagerNo;
  116. @DateTimeFormat(
  117. pattern = "yyyy-MM-dd HH:mm:ss"
  118. )
  119. @JSONField(
  120. format = "yyyy-MM-dd HH:mm:ss"
  121. )
  122. @JsonFormat(
  123. pattern = "yyyy-MM-dd HH:mm:ss",
  124. timezone = "GMT+8"
  125. )
  126. private Date startTime;
  127. @DateTimeFormat(
  128. pattern = "yyyy-MM-dd HH:mm:ss"
  129. )
  130. @JSONField(
  131. format = "yyyy-MM-dd HH:mm:ss"
  132. )
  133. @JsonFormat(
  134. pattern = "yyyy-MM-dd HH:mm:ss",
  135. timezone = "GMT+8"
  136. )
  137. private Date endTime;
  138. private Integer isWithdraw;
  139. }