12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- package com.redxun.knowledge.entity.vo;
- import com.alibaba.fastjson.annotation.JSONField;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.redxun.knowledge.entity.dao.KnowledgeApprove;
- import lombok.Data;
- import org.springframework.format.annotation.DateTimeFormat;
- import java.util.Date;
- import java.util.List;
- @Data
- public class KnowledgeVo {
- // 主键
- private String pkId;
- // 知识分类ID
- private String categoryId;
- // 知识类型 1-文档知识 2-维基知识
- private Integer type;
- // 知识类型名称
- private String getTypeName() {
- if (type != null) {
- if (type == 1) {
- return "文档知识";
- } else if (type == 2) {
- return "维基知识";
- }
- }
- return "";
- }
- // 知识标题
- private String titles;
- // 作者名称
- private String author;
- // 知识内容
- private String content;
- // 简介
- private String summary;
- // 附件ID
- private String attachment;
- // 创建时间
- @DateTimeFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- @JSONField(
- format = "yyyy-MM-dd HH:mm:ss"
- )
- @JsonFormat(
- pattern = "yyyy-MM-dd HH:mm:ss",
- timezone = "GMT+8"
- )
- private Date createTime;
- // 操作时间
- @DateTimeFormat(
- pattern = "yyyy-MM-dd HH:mm:ss"
- )
- @JSONField(
- format = "yyyy-MM-dd HH:mm:ss"
- )
- @JsonFormat(
- pattern = "yyyy-MM-dd HH:mm:ss",
- timezone = "GMT+8"
- )
- private Date updateTime;
- // 浏览数量
- private Integer views;
- // 审批状态 1-待节点审核 2-节点驳回 3-待最终审核 4-最终驳回 5-最终通过
- private Integer approvalStatus;
- // 流程节点
- private List<KnowledgeApprovalVo> approvals;
- // 第一个流程节点
- private KnowledgeApprove approvalsFirst;
- //所属分类
- private KnowledgeCategoryAdminVo knowledgeCategoryAdminVo;
- }
|