gaodm %!s(int64=4) %!d(string=hai) anos
pai
achega
9cba62ccd3
Modificáronse 61 ficheiros con 2927 adicións e 68 borrados
  1. 62 62
      src/main/java/com/diagbot/config/CacheDeleteInit.java
  2. 157 0
      src/main/java/com/diagbot/entity/KlConcept.java
  3. 170 0
      src/main/java/com/diagbot/entity/KlConceptCommon.java
  4. 183 0
      src/main/java/com/diagbot/entity/KlConceptDetail.java
  5. 157 0
      src/main/java/com/diagbot/entity/KlConceptStatic.java
  6. 144 0
      src/main/java/com/diagbot/entity/KlDisease.java
  7. 183 0
      src/main/java/com/diagbot/entity/KlLibraryInfo.java
  8. 157 0
      src/main/java/com/diagbot/entity/KlRelation.java
  9. 157 0
      src/main/java/com/diagbot/entity/KlRule.java
  10. 274 0
      src/main/java/com/diagbot/entity/KlRuleBase.java
  11. 144 0
      src/main/java/com/diagbot/entity/KlRuleCondition.java
  12. 20 0
      src/main/java/com/diagbot/entity/node/ExportNode.java
  13. 20 0
      src/main/java/com/diagbot/entity/node/ExportNodeInfo.java
  14. 18 0
      src/main/java/com/diagbot/entity/node/ExportRelation.java
  15. 18 0
      src/main/java/com/diagbot/entity/node/ExportRelationInfo.java
  16. 199 0
      src/main/java/com/diagbot/facade/ExportFacade.java
  17. 16 0
      src/main/java/com/diagbot/mapper/KlConceptCommonMapper.java
  18. 16 0
      src/main/java/com/diagbot/mapper/KlConceptDetailMapper.java
  19. 16 0
      src/main/java/com/diagbot/mapper/KlConceptMapper.java
  20. 16 0
      src/main/java/com/diagbot/mapper/KlConceptStaticMapper.java
  21. 16 0
      src/main/java/com/diagbot/mapper/KlDiseaseMapper.java
  22. 16 0
      src/main/java/com/diagbot/mapper/KlLibraryInfoMapper.java
  23. 16 0
      src/main/java/com/diagbot/mapper/KlRelationMapper.java
  24. 16 0
      src/main/java/com/diagbot/mapper/KlRuleBaseMapper.java
  25. 16 0
      src/main/java/com/diagbot/mapper/KlRuleConditionMapper.java
  26. 16 0
      src/main/java/com/diagbot/mapper/KlRuleMapper.java
  27. 75 0
      src/main/java/com/diagbot/repository/ExportNodeRepository.java
  28. 30 0
      src/main/java/com/diagbot/repository/ExportRelationRepository.java
  29. 16 0
      src/main/java/com/diagbot/service/KlConceptCommonService.java
  30. 16 0
      src/main/java/com/diagbot/service/KlConceptDetailService.java
  31. 16 0
      src/main/java/com/diagbot/service/KlConceptService.java
  32. 16 0
      src/main/java/com/diagbot/service/KlConceptStaticService.java
  33. 16 0
      src/main/java/com/diagbot/service/KlDiseaseService.java
  34. 16 0
      src/main/java/com/diagbot/service/KlLibraryInfoService.java
  35. 16 0
      src/main/java/com/diagbot/service/KlRelationService.java
  36. 16 0
      src/main/java/com/diagbot/service/KlRuleBaseService.java
  37. 16 0
      src/main/java/com/diagbot/service/KlRuleConditionService.java
  38. 16 0
      src/main/java/com/diagbot/service/KlRuleService.java
  39. 20 0
      src/main/java/com/diagbot/service/impl/KlConceptCommonServiceImpl.java
  40. 20 0
      src/main/java/com/diagbot/service/impl/KlConceptDetailServiceImpl.java
  41. 20 0
      src/main/java/com/diagbot/service/impl/KlConceptServiceImpl.java
  42. 20 0
      src/main/java/com/diagbot/service/impl/KlConceptStaticServiceImpl.java
  43. 20 0
      src/main/java/com/diagbot/service/impl/KlDiseaseServiceImpl.java
  44. 20 0
      src/main/java/com/diagbot/service/impl/KlLibraryInfoServiceImpl.java
  45. 20 0
      src/main/java/com/diagbot/service/impl/KlRelationServiceImpl.java
  46. 20 0
      src/main/java/com/diagbot/service/impl/KlRuleBaseServiceImpl.java
  47. 20 0
      src/main/java/com/diagbot/service/impl/KlRuleConditionServiceImpl.java
  48. 20 0
      src/main/java/com/diagbot/service/impl/KlRuleServiceImpl.java
  49. 31 0
      src/main/java/com/diagbot/web/ExportController.java
  50. 2 2
      src/main/resources/application-local.yml
  51. 20 0
      src/main/resources/mapper/KlConceptCommonMapper.xml
  52. 21 0
      src/main/resources/mapper/KlConceptDetailMapper.xml
  53. 19 0
      src/main/resources/mapper/KlConceptMapper.xml
  54. 19 0
      src/main/resources/mapper/KlConceptStaticMapper.xml
  55. 18 0
      src/main/resources/mapper/KlDiseaseMapper.xml
  56. 21 0
      src/main/resources/mapper/KlLibraryInfoMapper.xml
  57. 19 0
      src/main/resources/mapper/KlRelationMapper.xml
  58. 28 0
      src/main/resources/mapper/KlRuleBaseMapper.xml
  59. 18 0
      src/main/resources/mapper/KlRuleConditionMapper.xml
  60. 19 0
      src/main/resources/mapper/KlRuleMapper.xml
  61. 4 4
      src/test/java/com/diagbot/CodeGeneration.java

+ 62 - 62
src/main/java/com/diagbot/config/CacheDeleteInit.java

@@ -1,62 +1,62 @@
-package com.diagbot.config;
-
-import com.diagbot.facade.CacheFacade;
-import com.diagbot.facade.NeoFacade;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.CommandLineRunner;
-import org.springframework.core.annotation.Order;
-import org.springframework.stereotype.Component;
-
-/**
- * @Description: 项目启动后初始化缓存
- * @author: gaodm
- * @time: 2020/5/13 11:20
- */
-@Component //把类交给spring容器管理
-@Order(100)  //使用order属性,设置该类在spring容器中的加载顺序
-@Slf4j
-public class CacheDeleteInit implements CommandLineRunner {
-
-    @Autowired
-    CacheFacade cacheFacade;
-    @Autowired
-    NeoFacade neoFacade;
-
-    @Override
-    public void run(String... args) throws Exception {
-        // 服务启动清除redis缓存
-        cacheFacade.clear();
-        log.info("CDSS-CORE服务启动清除redis缓存成功!");
-
-        cacheFacade.loadDrugTypeCache();
-        log.info("CDSS-CORE服务启动加载药品类型对应关系缓存成功!");
-
-        cacheFacade.getSymptomCache();
-        log.info("CDSS-CORE服务启动加载图谱症状缓存成功!");
-
-        cacheFacade.getVitalCache();
-        log.info("CDSS-CORE服务启动加载图谱体征缓存成功!");
-
-        cacheFacade.getSymptomFeatureCache();
-        log.info("CDSS-CORE服务启动加载症状特征缓存成功!");
-
-        cacheFacade.getDiseaseCorrespondCache();
-        log.info("CDSS-CORE服务启动加载疾病对应ICD10缓存成功!");
-
-        cacheFacade.getdiseaseFilterCache();
-        log.info("CDSS-CORE服务启动加载疾病过滤缓存成功!");
-
-        cacheFacade.getSymptomMainCache();
-        log.info("CDSS-CORE服务启动加载典型症状缓存成功!");
-
-        cacheFacade.loadDiseaseTypeCache();
-        log.info("CDSS-CORE服务启动加载疾病属性(性别、年龄、发病率)缓存成功!");
-
-        cacheFacade.getSymptomNumCache();
-        log.info("CDSS-CORE服务启动加载疾病对应的症状个数缓存成功!");
-
-
-        log.info("CDSS-CORE初始化完成!");
-    }
-}
+//package com.diagbot.config;
+//
+//import com.diagbot.facade.CacheFacade;
+//import com.diagbot.facade.NeoFacade;
+//import lombok.extern.slf4j.Slf4j;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.boot.CommandLineRunner;
+//import org.springframework.core.annotation.Order;
+//import org.springframework.stereotype.Component;
+//
+///**
+// * @Description: 项目启动后初始化缓存
+// * @author: gaodm
+// * @time: 2020/5/13 11:20
+// */
+//@Component //把类交给spring容器管理
+//@Order(100)  //使用order属性,设置该类在spring容器中的加载顺序
+//@Slf4j
+//public class CacheDeleteInit implements CommandLineRunner {
+//
+//    @Autowired
+//    CacheFacade cacheFacade;
+//    @Autowired
+//    NeoFacade neoFacade;
+//
+//    @Override
+//    public void run(String... args) throws Exception {
+//        // 服务启动清除redis缓存
+//        cacheFacade.clear();
+//        log.info("CDSS-CORE服务启动清除redis缓存成功!");
+//
+//        cacheFacade.loadDrugTypeCache();
+//        log.info("CDSS-CORE服务启动加载药品类型对应关系缓存成功!");
+//
+//        cacheFacade.getSymptomCache();
+//        log.info("CDSS-CORE服务启动加载图谱症状缓存成功!");
+//
+//        cacheFacade.getVitalCache();
+//        log.info("CDSS-CORE服务启动加载图谱体征缓存成功!");
+//
+//        cacheFacade.getSymptomFeatureCache();
+//        log.info("CDSS-CORE服务启动加载症状特征缓存成功!");
+//
+//        cacheFacade.getDiseaseCorrespondCache();
+//        log.info("CDSS-CORE服务启动加载疾病对应ICD10缓存成功!");
+//
+//        cacheFacade.getdiseaseFilterCache();
+//        log.info("CDSS-CORE服务启动加载疾病过滤缓存成功!");
+//
+//        cacheFacade.getSymptomMainCache();
+//        log.info("CDSS-CORE服务启动加载典型症状缓存成功!");
+//
+//        cacheFacade.loadDiseaseTypeCache();
+//        log.info("CDSS-CORE服务启动加载疾病属性(性别、年龄、发病率)缓存成功!");
+//
+//        cacheFacade.getSymptomNumCache();
+//        log.info("CDSS-CORE服务启动加载疾病对应的症状个数缓存成功!");
+//
+//
+//        log.info("CDSS-CORE初始化完成!");
+//    }
+//}

+ 157 - 0
src/main/java/com/diagbot/entity/KlConcept.java

@@ -0,0 +1,157 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 概念表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlConcept implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键,概念id
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 对应术语id
+     */
+    private Long libId;
+
+    /**
+     * 概念名称(冗余)
+     */
+    private String libName;
+
+    /**
+     * 概念词性type(冗余)
+     */
+    private Integer libType;
+
+    /**
+     * 启用状态(0:禁用,1:启用)
+     */
+    private Integer status;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getLibId() {
+        return libId;
+    }
+
+    public void setLibId(Long libId) {
+        this.libId = libId;
+    }
+    public String getLibName() {
+        return libName;
+    }
+
+    public void setLibName(String libName) {
+        this.libName = libName;
+    }
+    public Integer getLibType() {
+        return libType;
+    }
+
+    public void setLibType(Integer libType) {
+        this.libType = libType;
+    }
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    @Override
+    public String toString() {
+        return "KlConcept{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", libId=" + libId +
+            ", libName=" + libName +
+            ", libType=" + libType +
+            ", status=" + status +
+        "}";
+    }
+}

+ 170 - 0
src/main/java/com/diagbot/entity/KlConceptCommon.java

@@ -0,0 +1,170 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 概念通用扩展表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlConceptCommon implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 术语概念id
+     */
+    private Long conceptId;
+
+    /**
+     * 性别:1:男, 2:女, 3:通用
+     */
+    private Integer sexType;
+
+    /**
+     * 发生的最小年龄
+     */
+    private Double minAge;
+
+    /**
+     * 发生的最大年龄
+     */
+    private Double maxAge;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getConceptId() {
+        return conceptId;
+    }
+
+    public void setConceptId(Long conceptId) {
+        this.conceptId = conceptId;
+    }
+    public Integer getSexType() {
+        return sexType;
+    }
+
+    public void setSexType(Integer sexType) {
+        this.sexType = sexType;
+    }
+    public Double getMinAge() {
+        return minAge;
+    }
+
+    public void setMinAge(Double minAge) {
+        this.minAge = minAge;
+    }
+    public Double getMaxAge() {
+        return maxAge;
+    }
+
+    public void setMaxAge(Double maxAge) {
+        this.maxAge = maxAge;
+    }
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        return "KlConceptCommon{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", conceptId=" + conceptId +
+            ", sexType=" + sexType +
+            ", minAge=" + minAge +
+            ", maxAge=" + maxAge +
+            ", remark=" + remark +
+        "}";
+    }
+}

+ 183 - 0
src/main/java/com/diagbot/entity/KlConceptDetail.java

@@ -0,0 +1,183 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 静态知识内容表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlConceptDetail implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 提示概念id
+     */
+    private Long conceptId;
+
+    /**
+     * 提示明细标题
+     */
+    private String title;
+
+    /**
+     * 提示明细内容
+     */
+    private String content;
+
+    /**
+     * 纯文本
+     */
+    private String text;
+
+    /**
+     * 提示明细序号
+     */
+    private Integer orderNo;
+
+    /**
+     * 内容类型(多选):1-化验、辅检、手术和操作、诊断、药品静态信息,2-注意事项,3-临床路径,4-治疗方案
+     */
+    private String contentType;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getConceptId() {
+        return conceptId;
+    }
+
+    public void setConceptId(Long conceptId) {
+        this.conceptId = conceptId;
+    }
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+    public String getText() {
+        return text;
+    }
+
+    public void setText(String text) {
+        this.text = text;
+    }
+    public Integer getOrderNo() {
+        return orderNo;
+    }
+
+    public void setOrderNo(Integer orderNo) {
+        this.orderNo = orderNo;
+    }
+    public String getContentType() {
+        return contentType;
+    }
+
+    public void setContentType(String contentType) {
+        this.contentType = contentType;
+    }
+
+    @Override
+    public String toString() {
+        return "KlConceptDetail{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", conceptId=" + conceptId +
+            ", title=" + title +
+            ", content=" + content +
+            ", text=" + text +
+            ", orderNo=" + orderNo +
+            ", contentType=" + contentType +
+        "}";
+    }
+}

+ 157 - 0
src/main/java/com/diagbot/entity/KlConceptStatic.java

@@ -0,0 +1,157 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 静态知识标准术语表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlConceptStatic implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 提示概念id
+     */
+    private Long conceptId;
+
+    /**
+     * 启用状态(0:禁用,1:启用)
+     */
+    private Integer status;
+
+    /**
+     * 临床路径名称
+     */
+    private String clinicalPathwayName;
+
+    /**
+     * 注意事项名称
+     */
+    private String noticeName;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getConceptId() {
+        return conceptId;
+    }
+
+    public void setConceptId(Long conceptId) {
+        this.conceptId = conceptId;
+    }
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+    public String getClinicalPathwayName() {
+        return clinicalPathwayName;
+    }
+
+    public void setClinicalPathwayName(String clinicalPathwayName) {
+        this.clinicalPathwayName = clinicalPathwayName;
+    }
+    public String getNoticeName() {
+        return noticeName;
+    }
+
+    public void setNoticeName(String noticeName) {
+        this.noticeName = noticeName;
+    }
+
+    @Override
+    public String toString() {
+        return "KlConceptStatic{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", conceptId=" + conceptId +
+            ", status=" + status +
+            ", clinicalPathwayName=" + clinicalPathwayName +
+            ", noticeName=" + noticeName +
+        "}";
+    }
+}

+ 144 - 0
src/main/java/com/diagbot/entity/KlDisease.java

@@ -0,0 +1,144 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 疾病表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlDisease implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 术语概念id
+     */
+    private Long conceptId;
+
+    /**
+     * ICD10编号
+     */
+    private String icd10Code;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getConceptId() {
+        return conceptId;
+    }
+
+    public void setConceptId(Long conceptId) {
+        this.conceptId = conceptId;
+    }
+    public String getIcd10Code() {
+        return icd10Code;
+    }
+
+    public void setIcd10Code(String icd10Code) {
+        this.icd10Code = icd10Code;
+    }
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        return "KlDisease{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", conceptId=" + conceptId +
+            ", icd10Code=" + icd10Code +
+            ", remark=" + remark +
+        "}";
+    }
+}

+ 183 - 0
src/main/java/com/diagbot/entity/KlLibraryInfo.java

@@ -0,0 +1,183 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 术语表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlLibraryInfo implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 名称
+     */
+    private String name;
+
+    /**
+     * 概念id
+     */
+    private Long conceptId;
+
+    /**
+     * 是否标准词,1:是,0:否
+     */
+    private Integer isConcept;
+
+    /**
+     * 词性id
+     */
+    private Integer typeId;
+
+    /**
+     * 拼音
+     */
+    private String spell;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+    public Long getConceptId() {
+        return conceptId;
+    }
+
+    public void setConceptId(Long conceptId) {
+        this.conceptId = conceptId;
+    }
+    public Integer getIsConcept() {
+        return isConcept;
+    }
+
+    public void setIsConcept(Integer isConcept) {
+        this.isConcept = isConcept;
+    }
+    public Integer getTypeId() {
+        return typeId;
+    }
+
+    public void setTypeId(Integer typeId) {
+        this.typeId = typeId;
+    }
+    public String getSpell() {
+        return spell;
+    }
+
+    public void setSpell(String spell) {
+        this.spell = spell;
+    }
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        return "KlLibraryInfo{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", name=" + name +
+            ", conceptId=" + conceptId +
+            ", isConcept=" + isConcept +
+            ", typeId=" + typeId +
+            ", spell=" + spell +
+            ", remark=" + remark +
+        "}";
+    }
+}

+ 157 - 0
src/main/java/com/diagbot/entity/KlRelation.java

@@ -0,0 +1,157 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 术语关系表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlRelation implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 关系起点术语id
+     */
+    private Long startId;
+
+    /**
+     * 关系id
+     */
+    private Long relationId;
+
+    /**
+     * 关系终点术语id
+     */
+    private Long endId;
+
+    /**
+     * 启用状态(0:禁用,1:启用)
+     */
+    private Integer status;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getStartId() {
+        return startId;
+    }
+
+    public void setStartId(Long startId) {
+        this.startId = startId;
+    }
+    public Long getRelationId() {
+        return relationId;
+    }
+
+    public void setRelationId(Long relationId) {
+        this.relationId = relationId;
+    }
+    public Long getEndId() {
+        return endId;
+    }
+
+    public void setEndId(Long endId) {
+        this.endId = endId;
+    }
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    @Override
+    public String toString() {
+        return "KlRelation{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", startId=" + startId +
+            ", relationId=" + relationId +
+            ", endId=" + endId +
+            ", status=" + status +
+        "}";
+    }
+}

+ 157 - 0
src/main/java/com/diagbot/entity/KlRule.java

@@ -0,0 +1,157 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 规则信息表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlRule implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 提示概念id
+     */
+    private Long conceptId;
+
+    /**
+     * 描述
+     */
+    private String description;
+
+    /**
+     * 规则类型(1:开单合理性;2:高危;3:危急值;4:其他值提醒5:其他值提醒输血)
+     */
+    private Integer ruleType;
+
+    /**
+     * 启用状态(0:禁用,1:启用)
+     */
+    private Integer status;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getConceptId() {
+        return conceptId;
+    }
+
+    public void setConceptId(Long conceptId) {
+        this.conceptId = conceptId;
+    }
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+    public Integer getRuleType() {
+        return ruleType;
+    }
+
+    public void setRuleType(Integer ruleType) {
+        this.ruleType = ruleType;
+    }
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    @Override
+    public String toString() {
+        return "KlRule{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", conceptId=" + conceptId +
+            ", description=" + description +
+            ", ruleType=" + ruleType +
+            ", status=" + status +
+        "}";
+    }
+}

+ 274 - 0
src/main/java/com/diagbot/entity/KlRuleBase.java

@@ -0,0 +1,274 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 规则基础表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlRuleBase implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 提示概念id
+     */
+    private Long conceptId;
+
+    /**
+     * 描述
+     */
+    private String description;
+
+    /**
+     * 基础规则类型(1:开单外等于术语本身;2:开单外存在比较;3:过敏原;4:开单项;)
+     */
+    private Integer type;
+
+    /**
+     * 最小域比较符
+     */
+    private String minOperator;
+
+    /**
+     * 最小域值
+     */
+    private String minValue;
+
+    /**
+     * 最小域单位
+     */
+    private String minUnit;
+
+    /**
+     * 最大域比较符
+     */
+    private String maxOperator;
+
+    /**
+     * 最大域值
+     */
+    private String maxValue;
+
+    /**
+     * 最大域单位
+     */
+    private String maxUnit;
+
+    /**
+     * 等于域比较符
+     */
+    private String eqOperator;
+
+    /**
+     * 等于域值
+     */
+    private String eqValue;
+
+    /**
+     * 等于域单位
+     */
+    private String eqUnit;
+
+    /**
+     * 启用状态(0:禁用,1:启用)
+     */
+    private Integer status;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getConceptId() {
+        return conceptId;
+    }
+
+    public void setConceptId(Long conceptId) {
+        this.conceptId = conceptId;
+    }
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+    public Integer getType() {
+        return type;
+    }
+
+    public void setType(Integer type) {
+        this.type = type;
+    }
+    public String getMinOperator() {
+        return minOperator;
+    }
+
+    public void setMinOperator(String minOperator) {
+        this.minOperator = minOperator;
+    }
+    public String getMinValue() {
+        return minValue;
+    }
+
+    public void setMinValue(String minValue) {
+        this.minValue = minValue;
+    }
+    public String getMinUnit() {
+        return minUnit;
+    }
+
+    public void setMinUnit(String minUnit) {
+        this.minUnit = minUnit;
+    }
+    public String getMaxOperator() {
+        return maxOperator;
+    }
+
+    public void setMaxOperator(String maxOperator) {
+        this.maxOperator = maxOperator;
+    }
+    public String getMaxValue() {
+        return maxValue;
+    }
+
+    public void setMaxValue(String maxValue) {
+        this.maxValue = maxValue;
+    }
+    public String getMaxUnit() {
+        return maxUnit;
+    }
+
+    public void setMaxUnit(String maxUnit) {
+        this.maxUnit = maxUnit;
+    }
+    public String getEqOperator() {
+        return eqOperator;
+    }
+
+    public void setEqOperator(String eqOperator) {
+        this.eqOperator = eqOperator;
+    }
+    public String getEqValue() {
+        return eqValue;
+    }
+
+    public void setEqValue(String eqValue) {
+        this.eqValue = eqValue;
+    }
+    public String getEqUnit() {
+        return eqUnit;
+    }
+
+    public void setEqUnit(String eqUnit) {
+        this.eqUnit = eqUnit;
+    }
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    @Override
+    public String toString() {
+        return "KlRuleBase{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", conceptId=" + conceptId +
+            ", description=" + description +
+            ", type=" + type +
+            ", minOperator=" + minOperator +
+            ", minValue=" + minValue +
+            ", minUnit=" + minUnit +
+            ", maxOperator=" + maxOperator +
+            ", maxValue=" + maxValue +
+            ", maxUnit=" + maxUnit +
+            ", eqOperator=" + eqOperator +
+            ", eqValue=" + eqValue +
+            ", eqUnit=" + eqUnit +
+            ", status=" + status +
+        "}";
+    }
+}

+ 144 - 0
src/main/java/com/diagbot/entity/KlRuleCondition.java

@@ -0,0 +1,144 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 规则条件表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public class KlRuleCondition implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private LocalDateTime gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private LocalDateTime gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 提示概念id
+     */
+    private Long ruleId;
+
+    /**
+     * 规则组别
+     */
+    private Integer groupType;
+
+    /**
+     * 提示概念id
+     */
+    private Long ruleBaseId;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public LocalDateTime getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(LocalDateTime gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public LocalDateTime getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(LocalDateTime gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getRuleId() {
+        return ruleId;
+    }
+
+    public void setRuleId(Long ruleId) {
+        this.ruleId = ruleId;
+    }
+    public Integer getGroupType() {
+        return groupType;
+    }
+
+    public void setGroupType(Integer groupType) {
+        this.groupType = groupType;
+    }
+    public Long getRuleBaseId() {
+        return ruleBaseId;
+    }
+
+    public void setRuleBaseId(Long ruleBaseId) {
+        this.ruleBaseId = ruleBaseId;
+    }
+
+    @Override
+    public String toString() {
+        return "KlRuleCondition{" +
+            "id=" + id +
+            ", isDeleted=" + isDeleted +
+            ", gmtCreate=" + gmtCreate +
+            ", gmtModified=" + gmtModified +
+            ", creator=" + creator +
+            ", modifier=" + modifier +
+            ", ruleId=" + ruleId +
+            ", groupType=" + groupType +
+            ", ruleBaseId=" + ruleBaseId +
+        "}";
+    }
+}

+ 20 - 0
src/main/java/com/diagbot/entity/node/ExportNode.java

@@ -0,0 +1,20 @@
+package com.diagbot.entity.node;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.data.neo4j.annotation.QueryResult;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2021/1/21 9:30
+ */
+@Getter
+@Setter
+@QueryResult
+public class ExportNode {
+    private String name;
+    private String sex;
+    private String ageRange;
+    private String icd10Code;
+}

+ 20 - 0
src/main/java/com/diagbot/entity/node/ExportNodeInfo.java

@@ -0,0 +1,20 @@
+package com.diagbot.entity.node;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.data.neo4j.annotation.QueryResult;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2021/1/21 9:30
+ */
+@Getter
+@Setter
+@QueryResult
+public class ExportNodeInfo {
+    private String name;
+    private String sex;
+    private String ageRange;
+    private String icd10Code;
+}

+ 18 - 0
src/main/java/com/diagbot/entity/node/ExportRelation.java

@@ -0,0 +1,18 @@
+package com.diagbot.entity.node;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.data.neo4j.annotation.QueryResult;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2021/1/21 9:30
+ */
+@Getter
+@Setter
+@QueryResult
+public class ExportRelation {
+    private String sname;
+    private String ename;
+}

+ 18 - 0
src/main/java/com/diagbot/entity/node/ExportRelationInfo.java

@@ -0,0 +1,18 @@
+package com.diagbot.entity.node;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.data.neo4j.annotation.QueryResult;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2021/1/21 9:30
+ */
+@Getter
+@Setter
+@QueryResult
+public class ExportRelationInfo {
+    private String sname;
+    private String ename;
+}

+ 199 - 0
src/main/java/com/diagbot/facade/ExportFacade.java

@@ -0,0 +1,199 @@
+package com.diagbot.facade;
+
+import com.diagbot.entity.KlConcept;
+import com.diagbot.entity.KlConceptCommon;
+import com.diagbot.entity.KlDisease;
+import com.diagbot.entity.KlLibraryInfo;
+import com.diagbot.entity.node.ExportNode;
+import com.diagbot.repository.ExportNodeRepository;
+import com.diagbot.repository.ExportRelationRepository;
+import com.diagbot.service.KlConceptCommonService;
+import com.diagbot.service.KlConceptService;
+import com.diagbot.service.KlDiseaseService;
+import com.diagbot.service.KlLibraryInfoService;
+import com.diagbot.util.Cn2SpellUtil;
+import com.diagbot.util.EntityUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2021/1/21 9:34
+ */
+@Component
+public class ExportFacade {
+    @Autowired
+    private ExportNodeRepository exportNodeRepository;
+    @Autowired
+    private ExportRelationRepository exportRelationRepository;
+    @Autowired
+    private KlConceptService klConceptService;
+    @Autowired
+    private KlLibraryInfoService klLibraryInfoService;
+    @Autowired
+    private KlConceptCommonService klConceptCommonService;
+    @Autowired
+    private KlDiseaseService klDiseaseService;
+
+    public Boolean gdbExport() {
+        //图谱数据节点处理
+        graphNodeDeal();
+        //图谱关系处理
+        graphRelationDeal();
+        return true;
+    }
+
+    private void graphNodeDeal() {
+        //疾病处理
+        List<ExportNode> nodes = exportNodeRepository.getDisease();
+        import2MySql(nodes, 100);
+        //药品通用名
+        nodes.clear();
+        nodes = exportNodeRepository.getDrug();
+        import2MySql(nodes, 101);
+        //药品剂型
+        nodes.clear();
+        nodes = exportNodeRepository.getDrugForm();
+        import2MySql(nodes, 102);
+        //症状
+        nodes.clear();
+        nodes = exportNodeRepository.getSymptom();
+        import2MySql(nodes, 103);
+        //体格检查结果
+        nodes.clear();
+        nodes = exportNodeRepository.getVital();
+        import2MySql(nodes, 105);
+        //手术和操作
+        nodes.clear();
+        nodes = exportNodeRepository.getOeration();
+        import2MySql(nodes, 106);
+        //实验室检查套餐
+        nodes.clear();
+        nodes = exportNodeRepository.getLisPackage();
+        import2MySql(nodes, 107);
+        //实验室检查子项目
+        nodes.clear();
+        nodes = exportNodeRepository.getLisItem();
+        import2MySql(nodes, 108);
+        //辅助检查项目
+        nodes.clear();
+        nodes = exportNodeRepository.getPacs();
+        import2MySql(nodes, 109);
+        //辅助检查子项目
+        nodes.clear();
+        nodes = exportNodeRepository.getPacsSubItem();
+        import2MySql(nodes, 110);
+        //辅助检查描述
+        nodes.clear();
+        nodes = exportNodeRepository.getPacsDesc();
+        import2MySql(nodes, 111);
+        //辅助检查结果
+        nodes.clear();
+        nodes = exportNodeRepository.getPacsResult();
+        import2MySql(nodes, 112);
+        //输血类型
+        nodes.clear();
+        nodes = exportNodeRepository.getTransfusion();
+        import2MySql(nodes, 113);
+        //科室
+        nodes.clear();
+        nodes = exportNodeRepository.getDept();
+        import2MySql(nodes, 115);
+        //性别
+        nodes.clear();
+        nodes = exportNodeRepository.getSex();
+        import2MySql(nodes, 116);
+        //其他过敏原
+        nodes.clear();
+        nodes = exportNodeRepository.getAllergen();
+        import2MySql(nodes, 119);
+        //医疗器械及物品
+        nodes.clear();
+        nodes = exportNodeRepository.getApparatus();
+        import2MySql(nodes, 120);
+        //药品化学物质类别
+        nodes.clear();
+        nodes = exportNodeRepository.getDrugTypeA();
+        import2MySql(nodes, 301);
+        //药品治疗学类别
+        nodes.clear();
+        nodes = exportNodeRepository.getDrugTypeB();
+        import2MySql(nodes, 302);
+        //药品药理学类别
+        nodes.clear();
+        nodes = exportNodeRepository.getDrugTypeC();
+        import2MySql(nodes, 303);
+        //药品解剖学类别
+        nodes.clear();
+        nodes = exportNodeRepository.getDrugTypeD();
+        import2MySql(nodes, 304);
+    }
+
+    private void import2MySql(List<ExportNode> nodes, Integer type) {
+        List<KlLibraryInfo> libraryInfos = new ArrayList<>();
+        List<String> names = new ArrayList<>();
+        for (ExportNode exportNode : nodes) {
+            if (!names.contains(exportNode.getName())) {
+                KlLibraryInfo klLibraryInfo = new KlLibraryInfo();
+                klLibraryInfo.setName(exportNode.getName());
+                klLibraryInfo.setIsConcept(1);
+                klLibraryInfo.setTypeId(type);
+                klLibraryInfo.setSpell(Cn2SpellUtil.converterToFirstSpell(exportNode.getName()));
+                libraryInfos.add(klLibraryInfo);
+                names.add(exportNode.getName());
+            }
+
+        }
+        klLibraryInfoService.saveBatch(libraryInfos);
+        List<KlConcept> klConcepts = new ArrayList<>();
+        for (KlLibraryInfo klLibraryInfo : libraryInfos) {
+            KlConcept klConcept = new KlConcept();
+            klConcept.setLibId(klLibraryInfo.getId());
+            klConcept.setLibName(klLibraryInfo.getName());
+            klConcept.setLibType(type);
+            klConcepts.add(klConcept);
+        }
+        klConceptService.saveBatch(klConcepts);
+        Map<Long, KlConcept> map = EntityUtil.makeEntityMap(klConcepts, "libId");
+        for (KlLibraryInfo klLibraryInfo : libraryInfos) {
+            klLibraryInfo.setConceptId(map.get(klLibraryInfo.getId()).getId());
+        }
+        klLibraryInfoService.updateBatchById(libraryInfos);
+        if (type.equals(100)) {
+            Map<String, ExportNode> nodeMap = EntityUtil.makeEntityMap(nodes, "name");
+            List<KlConceptCommon> klConceptCommons = new ArrayList<>();
+            List<KlDisease> klDiseases = new ArrayList<>();
+            for (KlConcept klConcept : klConcepts) {
+                KlConceptCommon klConceptCommon = new KlConceptCommon();
+                klConceptCommon.setConceptId(klConcept.getId());
+                KlDisease klDisease = new KlDisease();
+                klDisease.setConceptId(klConcept.getId());
+                ExportNode exportNode = nodeMap.get(klConcept.getLibName());
+                if (null != exportNode) {
+                    klConceptCommon.setSexType(Integer.valueOf(exportNode.getSex()));
+                    String[] age = exportNode.getAgeRange().split("-");
+                    klConceptCommon.setMinAge(Double.valueOf(age[0]));
+                    if (age.length == 1) {
+                        klConceptCommon.setMaxAge(200.0d);
+                    } else {
+                        klConceptCommon.setMaxAge(Double.valueOf(age[1]));
+                    }
+                    klDisease.setIcd10Code(exportNode.getIcd10Code());
+                    klConceptCommons.add(klConceptCommon);
+                    klDiseases.add(klDisease);
+                }
+            }
+            klConceptCommonService.saveBatch(klConceptCommons);
+            klDiseaseService.saveBatch(klDiseases);
+        }
+    }
+
+    private void graphRelationDeal() {
+
+    }
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlConceptCommonMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlConceptCommon;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 概念通用扩展表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptCommonMapper extends BaseMapper<KlConceptCommon> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlConceptDetailMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlConceptDetail;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 静态知识内容表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptDetailMapper extends BaseMapper<KlConceptDetail> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlConceptMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlConcept;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 概念表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptMapper extends BaseMapper<KlConcept> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlConceptStaticMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlConceptStatic;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 静态知识标准术语表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptStaticMapper extends BaseMapper<KlConceptStatic> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlDiseaseMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlDisease;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 疾病表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlDiseaseMapper extends BaseMapper<KlDisease> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlLibraryInfoMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlLibraryInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 术语表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlLibraryInfoMapper extends BaseMapper<KlLibraryInfo> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlRelationMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlRelation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 术语关系表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRelationMapper extends BaseMapper<KlRelation> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlRuleBaseMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlRuleBase;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 规则基础表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRuleBaseMapper extends BaseMapper<KlRuleBase> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlRuleConditionMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlRuleCondition;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 规则条件表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRuleConditionMapper extends BaseMapper<KlRuleCondition> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/mapper/KlRuleMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.KlRule;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 规则信息表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRuleMapper extends BaseMapper<KlRule> {
+
+}

+ 75 - 0
src/main/java/com/diagbot/repository/ExportNodeRepository.java

@@ -0,0 +1,75 @@
+package com.diagbot.repository;
+
+
+import com.diagbot.entity.node.ExportNode;
+import com.diagbot.entity.node.ExportNodeInfo;
+import org.springframework.data.neo4j.annotation.Query;
+import org.springframework.data.neo4j.repository.Neo4jRepository;
+
+import java.util.List;
+
+public interface ExportNodeRepository extends Neo4jRepository<ExportNodeInfo, Long> {
+
+    @Query("MATCH (n:`医保疾病名称`)-[]->(m:`医保ICD_10代码`)RETURN distinct n.name as name ,case when n.sex is not null then n.sex else '3' end as sex,case when n.age is not null then n.age else '0-200' end as ageRange,m.name as icd10Code")
+    List<ExportNode> getDisease();
+
+    @Query("MATCH (n:`药品通用名称`) RETURN distinct(n.name) as name")
+    List<ExportNode> getDrug();
+
+    @Query("match (n:药品通用名称)<-[r]-(m:药品代码通用名)-[r1]->(o:药品注册名称) return distinct(m.注册剂型) as name")
+    List<ExportNode> getDrugForm();
+
+    @Query("MATCH (n:`症状`) RETURN distinct(n.name) as name")
+    List<ExportNode> getSymptom();
+
+    @Query("MATCH (n:`体征`) where id(n) > 470000 RETURN distinct(n.name) as name")
+    List<ExportNode> getVital();
+
+    @Query("MATCH (n:`医保手术和操作名称`) RETURN distinct(n.name) as name")
+    List<ExportNode> getOeration();
+
+    @Query("MATCH (n:`实验室检查套餐名`) RETURN distinct(n.name) as name")
+    List<ExportNode> getLisPackage();
+
+    @Query("MATCH (n:`实验室检查名称`) RETURN distinct(n.name) as name")
+    List<ExportNode> getLisItem();
+
+    @Query("MATCH (n:`辅助检查名称`)  RETURN distinct(n.name) as name")
+    List<ExportNode> getPacs();
+
+    @Query("MATCH (n:`辅助检查子项目名称`) RETURN distinct(n.name) as name")
+    List<ExportNode> getPacsSubItem();
+
+    @Query("MATCH (n:`辅助检查名称描述`) RETURN distinct(n.name) as name")
+    List<ExportNode> getPacsDesc();
+
+    @Query("MATCH (n:`辅助检查名称结果`) RETURN distinct(n.name) as name")
+    List<ExportNode> getPacsResult();
+
+    @Query("MATCH (n:输血提醒指标) return distinct(n.输注类型) as name")
+    List<ExportNode> getTransfusion();
+
+    @Query("MATCH (n:`科室`) RETURN distinct(n.name) as name")
+    List<ExportNode> getDept();
+
+    @Query("MATCH (n:`性别`) RETURN distinct(n.name) as name")
+    List<ExportNode> getSex();
+
+    @Query("MATCH (n:`过敏原`) RETURN distinct(n.name) as name")
+    List<ExportNode> getAllergen();
+
+    @Query("MATCH (n:`禁忌医疗器械及物品`) RETURN distinct(n.name) as name")
+    List<ExportNode> getApparatus();
+
+    @Query("MATCH (n:`药品化学物质类别`) RETURN distinct(n.name) as name")
+    List<ExportNode> getDrugTypeA();
+
+    @Query("MATCH (n:`药品治疗学类别`) RETURN distinct(n.name) as name")
+    List<ExportNode> getDrugTypeB();
+
+    @Query("MATCH (n:`药品药理学类别`) RETURN distinct(n.name) as name")
+    List<ExportNode> getDrugTypeC();
+
+    @Query("MATCH (n:`药品解剖学类别`) RETURN distinct(n.name) as name")
+    List<ExportNode> getDrugTypeD();
+}

+ 30 - 0
src/main/java/com/diagbot/repository/ExportRelationRepository.java

@@ -0,0 +1,30 @@
+package com.diagbot.repository;
+
+
+import com.diagbot.entity.node.ExportRelation;
+import com.diagbot.entity.node.ExportRelationInfo;
+import org.springframework.data.neo4j.annotation.Query;
+import org.springframework.data.neo4j.repository.Neo4jRepository;
+
+import java.util.List;
+
+public interface ExportRelationRepository extends Neo4jRepository<ExportRelationInfo, Long> {
+
+    @Query("MATCH (c:药品化学物质类别)<-[r:药品相关药品化学物质类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称)  RETURN DISTINCT c.name as sname,m.name as ename")
+    List<ExportRelation> getDrugRelationA();
+
+    @Query("MATCH (c:药品治疗学类别)<-[r:药品相关药品治疗学类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称)  RETURN DISTINCT c.name as sname,m.name as ename")
+    List<ExportRelation> getDrugRelationB();
+
+    @Query("MATCH (c:药品药理学类别)<-[r:药品相关药品药理学类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称)  RETURN DISTINCT c.name as sname,m.name as ename")
+    List<ExportRelation> getDrugRelationC();
+
+    @Query("MATCH (c:药品解剖学类别)<-[r:药品相关药品解剖学类别]-(y:药品代码通用名)-[r1:药品相关药品通用名称]->(m:药品通用名称)  RETURN DISTINCT c.name as sname,m.name as ename")
+    List<ExportRelation> getDrugRelationD();
+
+    @Query("MATCH (n:`实验室检查套餐名`)<-[r:实验室检查名称相关实验室检查套餐名]-(m:`实验室检查名称`)RETURN distinct n.name as sname ,m.name as ename")
+    List<ExportRelation> getLisRelation();
+
+    @Query("MATCH (n:`辅助检查名称`)-[r:辅助检查名称包含辅助检查子项目名称]->(m:`辅助检查子项目名称`)RETURN distinct n.name as sname ,m.name as ename")
+    List<ExportRelation> getPacsRelation();
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlConceptCommonService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlConceptCommon;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 概念通用扩展表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptCommonService extends IService<KlConceptCommon> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlConceptDetailService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlConceptDetail;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 静态知识内容表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptDetailService extends IService<KlConceptDetail> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlConceptService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlConcept;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 概念表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptService extends IService<KlConcept> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlConceptStaticService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlConceptStatic;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 静态知识标准术语表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlConceptStaticService extends IService<KlConceptStatic> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlDiseaseService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlDisease;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 疾病表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlDiseaseService extends IService<KlDisease> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlLibraryInfoService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlLibraryInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 术语表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlLibraryInfoService extends IService<KlLibraryInfo> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlRelationService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlRelation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 术语关系表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRelationService extends IService<KlRelation> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlRuleBaseService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlRuleBase;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 规则基础表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRuleBaseService extends IService<KlRuleBase> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlRuleConditionService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlRuleCondition;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 规则条件表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRuleConditionService extends IService<KlRuleCondition> {
+
+}

+ 16 - 0
src/main/java/com/diagbot/service/KlRuleService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.KlRule;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 规则信息表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+public interface KlRuleService extends IService<KlRule> {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlConceptCommonServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlConceptCommon;
+import com.diagbot.mapper.KlConceptCommonMapper;
+import com.diagbot.service.KlConceptCommonService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 概念通用扩展表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlConceptCommonServiceImpl extends ServiceImpl<KlConceptCommonMapper, KlConceptCommon> implements KlConceptCommonService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlConceptDetailServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlConceptDetail;
+import com.diagbot.mapper.KlConceptDetailMapper;
+import com.diagbot.service.KlConceptDetailService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 静态知识内容表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlConceptDetailServiceImpl extends ServiceImpl<KlConceptDetailMapper, KlConceptDetail> implements KlConceptDetailService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlConceptServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlConcept;
+import com.diagbot.mapper.KlConceptMapper;
+import com.diagbot.service.KlConceptService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 概念表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlConceptServiceImpl extends ServiceImpl<KlConceptMapper, KlConcept> implements KlConceptService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlConceptStaticServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlConceptStatic;
+import com.diagbot.mapper.KlConceptStaticMapper;
+import com.diagbot.service.KlConceptStaticService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 静态知识标准术语表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlConceptStaticServiceImpl extends ServiceImpl<KlConceptStaticMapper, KlConceptStatic> implements KlConceptStaticService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlDiseaseServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlDisease;
+import com.diagbot.mapper.KlDiseaseMapper;
+import com.diagbot.service.KlDiseaseService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 疾病表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlDiseaseServiceImpl extends ServiceImpl<KlDiseaseMapper, KlDisease> implements KlDiseaseService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlLibraryInfoServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlLibraryInfo;
+import com.diagbot.mapper.KlLibraryInfoMapper;
+import com.diagbot.service.KlLibraryInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 术语表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlLibraryInfoServiceImpl extends ServiceImpl<KlLibraryInfoMapper, KlLibraryInfo> implements KlLibraryInfoService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlRelationServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlRelation;
+import com.diagbot.mapper.KlRelationMapper;
+import com.diagbot.service.KlRelationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 术语关系表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlRelationServiceImpl extends ServiceImpl<KlRelationMapper, KlRelation> implements KlRelationService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlRuleBaseServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlRuleBase;
+import com.diagbot.mapper.KlRuleBaseMapper;
+import com.diagbot.service.KlRuleBaseService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 规则基础表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlRuleBaseServiceImpl extends ServiceImpl<KlRuleBaseMapper, KlRuleBase> implements KlRuleBaseService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlRuleConditionServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlRuleCondition;
+import com.diagbot.mapper.KlRuleConditionMapper;
+import com.diagbot.service.KlRuleConditionService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 规则条件表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlRuleConditionServiceImpl extends ServiceImpl<KlRuleConditionMapper, KlRuleCondition> implements KlRuleConditionService {
+
+}

+ 20 - 0
src/main/java/com/diagbot/service/impl/KlRuleServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.KlRule;
+import com.diagbot.mapper.KlRuleMapper;
+import com.diagbot.service.KlRuleService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 规则信息表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2021-01-21
+ */
+@Service
+public class KlRuleServiceImpl extends ServiceImpl<KlRuleMapper, KlRule> implements KlRuleService {
+
+}

+ 31 - 0
src/main/java/com/diagbot/web/ExportController.java

@@ -0,0 +1,31 @@
+package com.diagbot.web;
+
+import com.diagbot.dto.RespDTO;
+import com.diagbot.facade.ExportFacade;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2021/1/21 9:37
+ */
+@RestController
+@RequestMapping("/export")
+@Api(value = "图谱数据迁移相关API", tags = { "图谱数据迁移相关API" })
+@SuppressWarnings("unchecked")
+public class ExportController {
+    @Autowired
+    private ExportFacade exportFacade;
+
+    @ApiOperation(value = "图谱数据迁移[gaodm]",
+            notes = "")
+    @PostMapping("/gdbExport")
+    public RespDTO<Boolean> gdbExport() {
+        return RespDTO.onSuc(exportFacade.gdbExport());
+    }
+}

+ 2 - 2
src/main/resources/application-local.yml

@@ -40,7 +40,7 @@ spring:
     druid:
       driver-class-name: com.mysql.cj.jdbc.Driver
       platform: mysql
-      url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      url: jdbc:mysql://192.168.2.236:3306/med_2021?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
       username: root
       password: lantone
       # 连接池的配置信息
@@ -106,7 +106,7 @@ spring:
 
 neo4j:
   data:
-    URI: http://192.168.2.234:7480
+    URI: http://192.168.3.150:7480
     username: neo4j
     password: root
 

+ 20 - 0
src/main/resources/mapper/KlConceptCommonMapper.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlConceptCommonMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlConceptCommon">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="concept_id" property="conceptId" />
+        <result column="sex_type" property="sexType" />
+        <result column="min_age" property="minAge" />
+        <result column="max_age" property="maxAge" />
+        <result column="remark" property="remark" />
+    </resultMap>
+
+</mapper>

+ 21 - 0
src/main/resources/mapper/KlConceptDetailMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlConceptDetailMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlConceptDetail">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="concept_id" property="conceptId" />
+        <result column="title" property="title" />
+        <result column="content" property="content" />
+        <result column="text" property="text" />
+        <result column="order_no" property="orderNo" />
+        <result column="content_type" property="contentType" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
src/main/resources/mapper/KlConceptMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlConceptMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlConcept">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="lib_id" property="libId" />
+        <result column="lib_name" property="libName" />
+        <result column="lib_type" property="libType" />
+        <result column="status" property="status" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
src/main/resources/mapper/KlConceptStaticMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlConceptStaticMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlConceptStatic">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="concept_id" property="conceptId" />
+        <result column="status" property="status" />
+        <result column="clinical_pathway_name" property="clinicalPathwayName" />
+        <result column="notice_name" property="noticeName" />
+    </resultMap>
+
+</mapper>

+ 18 - 0
src/main/resources/mapper/KlDiseaseMapper.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlDiseaseMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlDisease">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="concept_id" property="conceptId" />
+        <result column="icd10_code" property="icd10Code" />
+        <result column="remark" property="remark" />
+    </resultMap>
+
+</mapper>

+ 21 - 0
src/main/resources/mapper/KlLibraryInfoMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlLibraryInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlLibraryInfo">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="name" property="name" />
+        <result column="concept_id" property="conceptId" />
+        <result column="is_concept" property="isConcept" />
+        <result column="type_id" property="typeId" />
+        <result column="spell" property="spell" />
+        <result column="remark" property="remark" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
src/main/resources/mapper/KlRelationMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlRelationMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlRelation">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="start_id" property="startId" />
+        <result column="relation_id" property="relationId" />
+        <result column="end_id" property="endId" />
+        <result column="status" property="status" />
+    </resultMap>
+
+</mapper>

+ 28 - 0
src/main/resources/mapper/KlRuleBaseMapper.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlRuleBaseMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlRuleBase">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="concept_id" property="conceptId" />
+        <result column="description" property="description" />
+        <result column="type" property="type" />
+        <result column="min_operator" property="minOperator" />
+        <result column="min_value" property="minValue" />
+        <result column="min_unit" property="minUnit" />
+        <result column="max_operator" property="maxOperator" />
+        <result column="max_value" property="maxValue" />
+        <result column="max_unit" property="maxUnit" />
+        <result column="eq_operator" property="eqOperator" />
+        <result column="eq_value" property="eqValue" />
+        <result column="eq_unit" property="eqUnit" />
+        <result column="status" property="status" />
+    </resultMap>
+
+</mapper>

+ 18 - 0
src/main/resources/mapper/KlRuleConditionMapper.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlRuleConditionMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlRuleCondition">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="rule_id" property="ruleId" />
+        <result column="group_type" property="groupType" />
+        <result column="rule_base_id" property="ruleBaseId" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
src/main/resources/mapper/KlRuleMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.diagbot.mapper.KlRuleMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.KlRule">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="concept_id" property="conceptId" />
+        <result column="description" property="description" />
+        <result column="rule_type" property="ruleType" />
+        <result column="status" property="status" />
+    </resultMap>
+
+</mapper>

+ 4 - 4
src/test/java/com/diagbot/CodeGeneration.java

@@ -27,13 +27,13 @@ public class CodeGeneration {
 
         // 全局配置
         GlobalConfig gc = new GlobalConfig();
-        gc.setOutputDir("E://code//cdss");
+        gc.setOutputDir("E://code//med2021");
         gc.setFileOverride(true);
         gc.setActiveRecord(false);// 不需要ActiveRecord特性的请改为false
         gc.setEnableCache(false);// XML 二级缓存
         gc.setBaseResultMap(true);// XML ResultMap
         gc.setBaseColumnList(false);// XML columList
-        gc.setAuthor("zhoutg");// 作者
+        gc.setAuthor("gaodm");// 作者
 
         // 自定义文件命名,注意 %s 会自动填充表实体属性!
         gc.setControllerName("%sController");
@@ -49,14 +49,14 @@ public class CodeGeneration {
         dsc.setDriverName("com.mysql.cj.jdbc.Driver");
         dsc.setUsername("root");
         dsc.setPassword("lantone");
-        dsc.setUrl("jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8");
+        dsc.setUrl("jdbc:mysql://192.168.2.236:3306/med_2021?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8");
         mpg.setDataSource(dsc);
 
         // 策略配置
         StrategyConfig strategy = new StrategyConfig();
         // strategy.setTablePrefix(new String[] { "demo_" });// 此处可以修改为您的表前缀
         strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
-        strategy.setInclude(new String[] { "symptom_feature"}); // 需要生成的表
+        strategy.setInclude(new String[] { "kl_library_info"}); // 需要生成的表
 
         strategy.setSuperServiceClass(null);
         strategy.setSuperServiceImplClass(null);