提交知识新增

release_1.0.0
liu 8 months ago
parent 74d89f37d1
commit 99531ba68f

@ -1,6 +1,7 @@
package com.supervision.knowsub.controller.knowledge;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.supervision.knowsub.entity.vo.knowledge.SaveKnowLedgeReqVO;
import com.supervision.knowsub.service.KnowledgeManageService;
import com.supervision.knowsub.model.Knowledge;
import io.swagger.v3.oas.annotations.Operation;
@ -39,7 +40,7 @@ public class KnowledgeManageController {
@Operation(summary = "新增知识库")
@PostMapping("saveKnowledge")
public void saveKnowledge() {
public void saveKnowledge(@RequestBody SaveKnowLedgeReqVO reqVO) {
}

@ -0,0 +1,14 @@
package com.supervision.knowsub.entity.vo.knowledge;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class KnowLedgeLinkVO {
@Schema(description = "链接名称")
private String linkName;
@Schema(description = "链接地址")
private String linkUrl;
}

@ -1,8 +1,56 @@
package com.supervision.knowsub.entity.vo.knowledge;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.List;
@Data
public class SaveKnowLedgeReqVO {
@Schema(description = "报送人ID")
private String userId;
@Schema(description = "报送部门ID")
private String submittedDeptId;
@Schema(description = "标题")
private String title;
@Schema(description = "HTML富文本的内容")
private String content;
@Schema(description = "摘要")
private String excerpt;
@Schema(description = "相关附件列表")
private List<String> fileIdList;
@Schema(description = "链接列表")
private List<KnowLedgeLinkVO> linkList;
@Schema(description = "发布部门")
private String publishDept;
@Schema(description = "发文时间")
private String publishTime;
@Schema(description = "时效性 1长期有效 2临时有效")
private Integer timeliness;
@Schema(description = "到期自动失效 1到期自动失效")
private Integer autoLoseEffect;
@Schema(description = "所属地域")
private String territory;
@Schema(description = "政策类型")
private String policyType;
@Schema(description = "知识标签")
private String knowLedgeTag;
@Schema(description = "公开范围 1公开 2不公开")
private String publishScope;
}

@ -4,13 +4,15 @@ import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @TableName ks_knowledge_base_info
*/
@TableName(value ="ks_knowledge_base_info")
@TableName(value = "ks_knowledge_base_info")
@Data
public class KnowledgeBaseInfo implements Serializable {
/**
@ -45,9 +47,14 @@ public class KnowledgeBaseInfo implements Serializable {
private Date publishDate;
/**
*
* 1 2
*/
private Integer timeliness;
/**
* 1
*/
private String timeliness;
private Integer autoLoseEffect;
/**
*
@ -60,14 +67,19 @@ public class KnowledgeBaseInfo implements Serializable {
private Date execTimeEnd;
/**
* ,,;
* ,,;
*/
private String knowledgeTag;
/**
*
*/
private String schemaTag;
private String policyType;
/**
*
* 1 2
*/
private String publishScope;
private Integer publishScope;
/**
* ID

@ -5,28 +5,31 @@
<mapper namespace="com.supervision.knowsub.mapper.KnowledgeBaseInfoMapper">
<resultMap id="BaseResultMap" type="com.supervision.knowsub.model.KnowledgeBaseInfo">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="contextId" column="context_id" jdbcType="VARCHAR"/>
<result property="coverId" column="cover_id" jdbcType="VARCHAR"/>
<result property="source" column="source" jdbcType="VARCHAR"/>
<result property="territory" column="territory" jdbcType="VARCHAR"/>
<result property="publishDate" column="publish_date" jdbcType="TIMESTAMP"/>
<result property="timeliness" column="timeliness" jdbcType="VARCHAR"/>
<result property="execTimeBegin" column="exec_time_begin" jdbcType="TIMESTAMP"/>
<result property="execTimeEnd" column="exec_time_end" jdbcType="TIMESTAMP"/>
<result property="schemaTag" column="schema_tag" jdbcType="VARCHAR"/>
<result property="publishScope" column="publish_scope" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="contextId" column="context_id" jdbcType="VARCHAR"/>
<result property="coverId" column="cover_id" jdbcType="VARCHAR"/>
<result property="source" column="source" jdbcType="VARCHAR"/>
<result property="territory" column="territory" jdbcType="VARCHAR"/>
<result property="publishDate" column="publish_date" jdbcType="TIMESTAMP"/>
<result property="timeliness" column="timeliness" jdbcType="INTEGER"/>
<result property="autoLoseEffect" column="auto_lose_effect" jdbcType="INTEGER"/>
<result property="execTimeBegin" column="exec_time_begin" jdbcType="TIMESTAMP"/>
<result property="execTimeEnd" column="exec_time_end" jdbcType="TIMESTAMP"/>
<result property="knowledgeTag" column="knowledge_tag" jdbcType="VARCHAR"/>
<result property="policyType" column="policy_type" jdbcType="VARCHAR"/>
<result property="publishScope" column="publish_scope" jdbcType="INTEGER"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,context_id,cover_id,
id
,context_id,cover_id,
source,territory,publish_date,
timeliness,exec_time_begin,exec_time_end,
schema_tag,publish_scope,create_user_id,
timeliness,autoLoseEffect,exec_time_begin,exec_time_end,
knowledge_tag,policy_type,publish_scope,create_user_id,
create_time,update_user_id,update_time
</sql>
</mapper>

Loading…
Cancel
Save