Browse Source

更新术语静态知识接口,添加知识来源

MarkHuang 6 years ago
parent
commit
46f1e43f4b

+ 5 - 0
knowledgeman-service/src/main/java/com/diagbot/dto/LibraryDetailDTO.java

@@ -57,6 +57,11 @@ public class LibraryDetailDTO {
      */
     private String name;
 
+    /**
+     * 静态知识来源
+     */
+    private String source;
+
     /**
      * 提示明细标题
      */

+ 13 - 0
knowledgeman-service/src/main/java/com/diagbot/entity/LibraryDetail.java

@@ -54,6 +54,11 @@ public class LibraryDetail implements Serializable {
      */
     private Long conceptId;
 
+    /**
+     * 静态知识来源
+     */
+    private String source;
+
     /**
      * 提示明细标题
      */
@@ -133,6 +138,13 @@ public class LibraryDetail implements Serializable {
     public void setConceptId(Long conceptId) {
         this.conceptId = conceptId;
     }
+    public String getSource() {
+        return source;
+    }
+
+    public void setSource(String source) {
+        this.source = source;
+    }
     public String getTitle() {
         return title;
     }
@@ -186,6 +198,7 @@ public class LibraryDetail implements Serializable {
         ", creator=" + creator +
         ", modifier=" + modifier +
         ", conceptId=" + conceptId +
+        ", source=" + source +
         ", title=" + title +
         ", content=" + content +
         ", text=" + text +

+ 2 - 0
knowledgeman-service/src/main/resources/mapper/LibraryDetailMapper.xml

@@ -11,6 +11,7 @@
         <result column="creator" property="creator" />
         <result column="modifier" property="modifier" />
         <result column="concept_id" property="conceptId" />
+        <result column="source" property="source" />
         <result column="title" property="title" />
         <result column="content" property="content" />
         <result column="text" property="text" />
@@ -29,6 +30,7 @@
         a.modifier,
         b.name,
         a.concept_id,
+        a.source,
         a.title,
         a.content,
         a.text,