Forráskód Böngészése

标准术语维护-术语关联校验

zhaops 4 éve
szülő
commit
06ca29b5b9
28 módosított fájl, 1461 hozzáadás és 2 törlés
  1. 213 0
      src/main/java/com/diagbot/entity/DeptConfig.java
  2. 197 0
      src/main/java/com/diagbot/entity/DiseaseConfig.java
  3. 215 0
      src/main/java/com/diagbot/entity/DrugConfig.java
  4. 197 0
      src/main/java/com/diagbot/entity/OperationConfig.java
  5. 40 0
      src/main/java/com/diagbot/facade/DeptConfigFacade.java
  6. 40 0
      src/main/java/com/diagbot/facade/DiseaseConfigFacade.java
  7. 40 0
      src/main/java/com/diagbot/facade/DrugConfigFacade.java
  8. 125 0
      src/main/java/com/diagbot/facade/EntityInfoFacade.java
  9. 18 2
      src/main/java/com/diagbot/facade/LisConfigFacade.java
  10. 40 0
      src/main/java/com/diagbot/facade/OperationConfigFacade.java
  11. 17 0
      src/main/java/com/diagbot/facade/PacsConfigFacade.java
  12. 15 0
      src/main/java/com/diagbot/mapper/DeptConfigMapper.java
  13. 15 0
      src/main/java/com/diagbot/mapper/DiseaseConfigMapper.java
  14. 15 0
      src/main/java/com/diagbot/mapper/DrugConfigMapper.java
  15. 15 0
      src/main/java/com/diagbot/mapper/OperationConfigMapper.java
  16. 15 0
      src/main/java/com/diagbot/service/DeptConfigService.java
  17. 15 0
      src/main/java/com/diagbot/service/DiseaseConfigService.java
  18. 15 0
      src/main/java/com/diagbot/service/DrugConfigService.java
  19. 15 0
      src/main/java/com/diagbot/service/OperationConfigService.java
  20. 19 0
      src/main/java/com/diagbot/service/impl/DeptConfigServiceImpl.java
  21. 19 0
      src/main/java/com/diagbot/service/impl/DiseaseConfigServiceImpl.java
  22. 19 0
      src/main/java/com/diagbot/service/impl/DrugConfigServiceImpl.java
  23. 19 0
      src/main/java/com/diagbot/service/impl/OperationConfigServiceImpl.java
  24. 45 0
      src/main/java/com/diagbot/web/EntityInfoController.java
  25. 20 0
      src/main/resources/mapper/DeptConfigMapper.xml
  26. 19 0
      src/main/resources/mapper/DiseaseConfigMapper.xml
  27. 20 0
      src/main/resources/mapper/DrugConfigMapper.xml
  28. 19 0
      src/main/resources/mapper/OperationConfigMapper.xml

+ 213 - 0
src/main/java/com/diagbot/entity/DeptConfig.java

@@ -0,0 +1,213 @@
+package com.diagbot.entity;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * <p>
+ * 科室映射表
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-08-12
+ */
+@TableName("tran_dept_config")
+public class DeptConfig implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 医院id
+     */
+    private Long hospitalId;
+
+    /**
+     * 医院科室名称
+     */
+    @Excel(name = "医院科室名称", width = 40, orderNum = "2", isImportField = "true")
+    @NotBlank(message = "请输入医院科室名称")
+    private String hisName;
+
+    /**
+     * 医院科室编码
+     */
+    @Excel(name = "医院科室编码", width = 40, orderNum = "1", isImportField = "true")
+    private String hisCode;
+
+    /**
+     * 标准科室名称
+     */
+    @Excel(name = "标准科室名称", width = 40, orderNum = "4", isImportField = "true")
+    @NotBlank(message = "请输入标准科室名称")
+    private String uniqueName;
+
+    /**
+     * 对应项编码
+     */
+    //@Excel(name = "对应项编码", width = 40, orderNum = "3")
+    private String uniqueCode;
+
+    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 Date getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(Date gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+
+    public Date getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(Date 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 getHospitalId() {
+        return hospitalId;
+    }
+
+    public void setHospitalId(Long hospitalId) {
+        this.hospitalId = hospitalId;
+    }
+
+    public String getHisName() {
+        return hisName;
+    }
+
+    public void setHisName(String hisName) {
+        this.hisName = hisName;
+    }
+
+    public String getHisCode() {
+        return hisCode;
+    }
+
+    public void setHisCode(String hisCode) {
+        this.hisCode = hisCode;
+    }
+
+    public String getUniqueName() {
+        return uniqueName;
+    }
+
+    public void setUniqueName(String uniqueName) {
+        this.uniqueName = uniqueName;
+    }
+
+    public String getUniqueCode() {
+        return uniqueCode;
+    }
+
+    public void setUniqueCode(String uniqueCode) {
+        this.uniqueCode = uniqueCode;
+    }
+
+    @Override
+    public String toString() {
+        return "DeptConfig{" +
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", hospitalId=" + hospitalId +
+                ", hisName=" + hisName +
+                ", hisCode=" + hisCode +
+                ", uniqueName=" + uniqueName +
+                ", uniqueCode=" + uniqueCode +
+                "}";
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o)
+            return true;
+        if (o == null || getClass() != o.getClass())
+            return false;
+        DeptConfig deptConfig = (DeptConfig) o;
+        return Objects.equals(id, deptConfig.id)
+                && Objects.equals(isDeleted, deptConfig.isDeleted)
+                && Objects.equals(hospitalId, deptConfig.hospitalId)
+                && Objects.equals(hisName, deptConfig.hisName)
+                && Objects.equals(hisCode, deptConfig.hisCode)
+                && Objects.equals(uniqueName, deptConfig.uniqueName)
+                && Objects.equals(uniqueCode, deptConfig.uniqueCode);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(id, isDeleted, hospitalId, hisName, hisCode, uniqueName, uniqueCode);
+    }
+}

+ 197 - 0
src/main/java/com/diagbot/entity/DiseaseConfig.java

@@ -0,0 +1,197 @@
+package com.diagbot.entity;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * <p>
+ * 诊断映射表
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+@TableName("tran_disease_config")
+public class DiseaseConfig implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 医院id
+     */
+    private Long hospitalId;
+
+    /**
+     * 医院诊断名称
+     */
+    @Excel(name = "医院诊断名称", width = 40, orderNum = "1", isImportField = "true")
+    @NotBlank(message = "请输入医院诊断名称")
+    private String hisName;
+
+    /**
+     * 标准诊断名称
+     */
+    @Excel(name = "标准诊断名称", width = 40, orderNum = "3", isImportField = "true")
+    @NotBlank(message = "请输入标准诊断名称")
+    private String uniqueName;
+
+    /**
+     * ICD-10编码
+     */
+    @Excel(name = "ICD-10编码", width = 40, orderNum = "2", isImportField = "true")
+    private String icdCode;
+
+    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 Date getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(Date gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+
+    public Date getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(Date 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 getHospitalId() {
+        return hospitalId;
+    }
+
+    public void setHospitalId(Long hospitalId) {
+        this.hospitalId = hospitalId;
+    }
+
+    public String getHisName() {
+        return hisName;
+    }
+
+    public void setHisName(String hisName) {
+        this.hisName = hisName;
+    }
+
+    public String getUniqueName() {
+        return uniqueName;
+    }
+
+    public void setUniqueName(String uniqueName) {
+        this.uniqueName = uniqueName;
+    }
+
+    public String getIcdCode() {
+        return icdCode;
+    }
+
+    public void setIcdCode(String icdCode) {
+        this.icdCode = icdCode;
+    }
+
+    @Override
+    public String toString() {
+        return "DiseaseConfig{" +
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", hospitalId=" + hospitalId +
+                ", hisName=" + hisName +
+                ", uniqueName=" + uniqueName +
+                ", icdCode=" + icdCode +
+                "}";
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o)
+            return true;
+        if (o == null || getClass() != o.getClass())
+            return false;
+        DiseaseConfig diseaseConfig = (DiseaseConfig) o;
+        return Objects.equals(id, diseaseConfig.id)
+                && Objects.equals(isDeleted, diseaseConfig.isDeleted)
+                && Objects.equals(hospitalId, diseaseConfig.hospitalId)
+                && Objects.equals(hisName, diseaseConfig.hisName)
+                && Objects.equals(uniqueName, diseaseConfig.uniqueName)
+                && Objects.equals(icdCode, diseaseConfig.icdCode);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(id, isDeleted, hospitalId, hisName, uniqueName, icdCode);
+    }
+}

+ 215 - 0
src/main/java/com/diagbot/entity/DrugConfig.java

@@ -0,0 +1,215 @@
+package com.diagbot.entity;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * <p>
+ * 药品映射表
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+@TableName("tran_drug_config")
+public class DrugConfig implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 医院id
+     */
+    private Long hospitalId;
+
+    /**
+     * 医院药品名称
+     */
+    @Excel(name = "医院药品名称", width = 40, orderNum = "1", isImportField = "true")
+    @NotBlank(message = "请输入医院药品名称")
+    //@Size(max = 80, min = 1,message = "医院药品名称长度需要在1-80字符长度之间")
+    private String hisName;
+
+    /**
+     * 标准药品名称
+     */
+    @Excel(name = "标准药品名称", width = 40, orderNum = "2", isImportField = "true")
+    @NotBlank(message = "请输入标准药品名称")
+    //@Size(max = 80, min = 1,message = "标准药品名称长度需要在1-80字符长度之间")
+    private String uniqueName;
+
+    /**
+     * 标准编码
+     */
+    //@Excel(name = "对应项编码", width = 40, orderNum = "3")
+    private String uniqueCode;
+
+    /**
+     * 剂型
+     */
+    @Excel(name = "药品剂型", width = 60, orderNum = "3", isImportField = "true")
+    private String form;
+
+    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 Date getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(Date gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+
+    public Date getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(Date 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 getHospitalId() {
+        return hospitalId;
+    }
+
+    public void setHospitalId(Long hospitalId) {
+        this.hospitalId = hospitalId;
+    }
+
+    public String getHisName() {
+        return hisName;
+    }
+
+    public void setHisName(String hisName) {
+        this.hisName = hisName;
+    }
+
+    public String getUniqueName() {
+        return uniqueName;
+    }
+
+    public void setUniqueName(String uniqueName) {
+        this.uniqueName = uniqueName;
+    }
+
+    public String getUniqueCode() {
+        return uniqueCode;
+    }
+
+    public void setUniqueCode(String uniqueCode) {
+        this.uniqueCode = uniqueCode;
+    }
+
+    public String getForm() {
+        return form;
+    }
+
+    public void setForm(String form) {
+        this.form = form;
+    }
+
+    @Override
+    public String toString() {
+        return "DrugConfig{" +
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", hospitalId=" + hospitalId +
+                ", hisName=" + hisName +
+                ", uniqueName=" + uniqueName +
+                ", uniqueCode=" + uniqueCode +
+                ", form=" + form +
+                "}";
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o)
+            return true;
+        if (o == null || getClass() != o.getClass())
+            return false;
+        DrugConfig drugConfig = (DrugConfig) o;
+        return Objects.equals(id, drugConfig.id)
+                && Objects.equals(isDeleted, drugConfig.isDeleted)
+                && Objects.equals(hospitalId, drugConfig.hospitalId)
+                && Objects.equals(hisName, drugConfig.hisName)
+                && Objects.equals(form, drugConfig.form)
+                && Objects.equals(uniqueName, drugConfig.uniqueName)
+                && Objects.equals(uniqueCode, drugConfig.uniqueCode);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(id, isDeleted, hospitalId, hisName, form, uniqueName, uniqueCode);
+    }
+}

+ 197 - 0
src/main/java/com/diagbot/entity/OperationConfig.java

@@ -0,0 +1,197 @@
+package com.diagbot.entity;
+
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/**
+ * <p>
+ * 手术映射表
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+@TableName("tran_operation_config")
+public class OperationConfig implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 医院id
+     */
+    private Long hospitalId;
+
+    /**
+     * 医院手术/操作名称
+     */
+    @Excel(name = "医院手术/操作名称", width = 40, orderNum = "1", isImportField = "true")
+    @NotBlank(message = "请输入医院手术/操作名称")
+    private String hisName;
+
+    /**
+     * 标准手术/操作名称
+     */
+    @Excel(name = "标准手术/操作名称", width = 40, orderNum = "3", isImportField = "true")
+    @NotBlank(message = "请输入标准手术/操作名称")
+    private String uniqueName;
+
+    /**
+     * 对应项编码
+     */
+    //@Excel(name = "对应项编码", width = 40, orderNum = "2")
+    private String uniqueCode;
+
+    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 Date getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(Date gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+
+    public Date getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(Date 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 getHospitalId() {
+        return hospitalId;
+    }
+
+    public void setHospitalId(Long hospitalId) {
+        this.hospitalId = hospitalId;
+    }
+
+    public String getHisName() {
+        return hisName;
+    }
+
+    public void setHisName(String hisName) {
+        this.hisName = hisName;
+    }
+
+    public String getUniqueName() {
+        return uniqueName;
+    }
+
+    public void setUniqueName(String uniqueName) {
+        this.uniqueName = uniqueName;
+    }
+
+    public String getUniqueCode() {
+        return uniqueCode;
+    }
+
+    public void setUniqueCode(String uniqueCode) {
+        this.uniqueCode = uniqueCode;
+    }
+
+    @Override
+    public String toString() {
+        return "OperationConfig{" +
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", hospitalId=" + hospitalId +
+                ", hisName=" + hisName +
+                ", uniqueName=" + uniqueName +
+                ", uniqueCode=" + uniqueCode +
+                "}";
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o)
+            return true;
+        if (o == null || getClass() != o.getClass())
+            return false;
+        OperationConfig operationConfig = (OperationConfig) o;
+        return Objects.equals(id, operationConfig.id)
+                && Objects.equals(isDeleted, operationConfig.isDeleted)
+                && Objects.equals(hospitalId, operationConfig.hospitalId)
+                && Objects.equals(hisName, operationConfig.hisName)
+                && Objects.equals(uniqueName, operationConfig.uniqueName)
+                && Objects.equals(uniqueCode, operationConfig.uniqueCode);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(id, isDeleted, hospitalId, hisName, uniqueName, uniqueCode);
+    }
+}

+ 40 - 0
src/main/java/com/diagbot/facade/DeptConfigFacade.java

@@ -0,0 +1,40 @@
+package com.diagbot.facade;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.diagbot.entity.DeptConfig;
+import com.diagbot.enums.IsDeleteEnum;
+import com.diagbot.service.DeptConfigService;
+import com.diagbot.util.ListUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2020/8/12 14:25
+ */
+@Component
+public class DeptConfigFacade {
+    @Autowired
+    private DeptConfigService deptConfigService;
+
+    /**
+     * 已映射
+     *
+     * @param name
+     * @return
+     */
+    public Boolean isMapping(String name) {
+        QueryWrapper<DeptConfig> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("unique_name", name);
+        List<DeptConfig> records = deptConfigService.list(queryWrapper);
+        if (ListUtil.isNotEmpty(records)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+}

+ 40 - 0
src/main/java/com/diagbot/facade/DiseaseConfigFacade.java

@@ -0,0 +1,40 @@
+package com.diagbot.facade;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.diagbot.entity.DiseaseConfig;
+import com.diagbot.enums.IsDeleteEnum;
+import com.diagbot.service.DiseaseConfigService;
+import com.diagbot.util.ListUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2020/7/29 15:05
+ */
+@Component
+public class DiseaseConfigFacade {
+    @Autowired
+    private DiseaseConfigService diseaseConfigService;
+
+    /**
+     * 已映射
+     *
+     * @param name
+     * @return
+     */
+    public Boolean isMapping(String name) {
+        QueryWrapper<DiseaseConfig> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("unique_name", name);
+        List<DiseaseConfig> records = diseaseConfigService.list(queryWrapper);
+        if (ListUtil.isNotEmpty(records)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+}

+ 40 - 0
src/main/java/com/diagbot/facade/DrugConfigFacade.java

@@ -0,0 +1,40 @@
+package com.diagbot.facade;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.diagbot.entity.DrugConfig;
+import com.diagbot.enums.IsDeleteEnum;
+import com.diagbot.service.DrugConfigService;
+import com.diagbot.util.ListUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2020/7/29 15:04
+ */
+@Component
+public class DrugConfigFacade {
+    @Autowired
+    private DrugConfigService drugConfigService;
+
+    /**
+     * 已映射
+     *
+     * @param name
+     * @return
+     */
+    public Boolean isMapping(String name) {
+        QueryWrapper<DrugConfig> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("unique_name", name);
+        List<DrugConfig> records = drugConfigService.list(queryWrapper);
+        if (ListUtil.isNotEmpty(records)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+}

+ 125 - 0
src/main/java/com/diagbot/facade/EntityInfoFacade.java

@@ -1,6 +1,7 @@
 package com.diagbot.facade;
 
 import com.diagbot.dto.DictionaryInfoDTO;
+import com.diagbot.entity.node.BillItem;
 import com.diagbot.entity.node.EntityInfo;
 import com.diagbot.enums.LabelTypeEnum;
 import com.diagbot.exception.CommonErrorCode;
@@ -19,6 +20,7 @@ import org.springframework.data.domain.PageRequest;
 import org.springframework.data.domain.Pageable;
 import org.springframework.stereotype.Component;
 
+import java.util.Arrays;
 import java.util.List;
 import java.util.stream.Collectors;
 
@@ -34,6 +36,19 @@ public class EntityInfoFacade {
     @Autowired
     EntityInfoRepository entityInfoRepository;
 
+    @Autowired
+    DeptConfigFacade deptConfigFacade;
+    @Autowired
+    DiseaseConfigFacade diseaseConfigFacade;
+    @Autowired
+    DrugConfigFacade drugConfigFacade;
+    @Autowired
+    LisConfigFacade lisConfigFacade;
+    @Autowired
+    OperationConfigFacade operationConfigFacade;
+    @Autowired
+    PacsConfigFacade pacsConfigFacade;
+
     @Autowired
     YiBaoDiseaseNameRepository yiBaoDiseaseNameRepository;
     @Autowired
@@ -110,6 +125,8 @@ public class EntityInfoFacade {
     FoodAllergenRepository foodAllergenRepository;
     @Autowired
     TransfusionRemindRepository transfusionRemindRepository;
+    @Autowired
+    BillManRepository billManRepository;
 
     /**
      * 分页查询
@@ -198,6 +215,114 @@ public class EntityInfoFacade {
         return entityInfo;
     }
 
+    /**
+     * 术语关联校验
+     *
+     * @param entityInfo
+     * @return
+     */
+    public Boolean dataVerify(EntityInfo entityInfo) {
+        String firstStr = "该术语已维护";
+        String lastStr = ",修改名称后将同步修改上述位置中的标准术语名称。确定要保存修改吗?";
+        String markedStr = "";
+
+        if (entityInfo.getId() == null) {
+            return true;
+        }
+
+        //是否维护静态术语
+        EntityInfo existEntity = getById(entityInfo.getId());
+        if (existEntity == null) {
+            return true;
+        }
+        //名称未修改
+        if (entityInfo.getName().equals(existEntity.getName())) {
+            return true;
+        }
+
+        //静态知识
+        if (existEntity.getIs_kl().equals(1)) {
+            markedStr += "静态知识";
+        }
+
+        //是否维护术语关联
+        //医保疾病名称、药品通用名称、实验室检查套餐名、实验室检查名称、辅助检查名称、辅助检查子项目名称、科室、医保手术和操作名称、输血
+        Boolean isMapping = false;
+        switch (entityInfo.getLabelType()) {
+            case "医保疾病名称":
+                isMapping = diseaseConfigFacade.isMapping(existEntity.getName());
+                break;
+            case "药品通用名称":
+                isMapping = drugConfigFacade.isMapping(existEntity.getName());
+                break;
+            case "实验室检查套餐名":
+            case "实验室检查名称":
+                isMapping = lisConfigFacade.isMapping(existEntity.getName());
+                break;
+            case "辅助检查名称":
+            case "辅助检查子项目名称":
+                isMapping = pacsConfigFacade.isMapping(existEntity.getName());
+                break;
+            case "科室":
+                isMapping = deptConfigFacade.isMapping(existEntity.getName());
+                break;
+            case "医保手术和操作名称":
+                isMapping = operationConfigFacade.isMapping(existEntity.getName());
+                break;
+            default:
+                break;
+        }
+        if (isMapping) {
+            if (StringUtil.isNotBlank(markedStr)) {
+                markedStr += "、";
+            }
+            markedStr += "术语关联";
+        }
+
+        //是否维护开单合理性规则(考虑禁忌条件和开单项)
+        Pageable pageable = PageRequest.of(0, 10);
+        Boolean bill = false;
+        //开单项
+        List<String> conceptLabels
+                = Arrays.asList(new String[] { "实验室检查套餐名", "辅助检查名称", "辅助检查子项目名称", "医保手术和操作名称", "药品注册名称" });
+        if (conceptLabels.contains(existEntity.getLabelType())) {
+            Page<BillItem> conceptPage = billManRepository.getPage(Arrays.asList(new String[] { entityInfo.getLabelType() }),
+                    existEntity.getName(),
+                    "",
+                    1,
+                    pageable);
+            if (ListUtil.isNotEmpty(conceptPage.getContent())) {
+                bill = true;
+            }
+        }
+        //禁忌条件
+        List<DictionaryInfoDTO> dicBillConditionType = dictionaryFacade.getListByGroupType(12);
+        List<String> conditionLabels = dicBillConditionType.stream().map(i -> i.getName()).collect(Collectors.toList());
+        if (conditionLabels.contains(existEntity.getLabelType())) {
+            Page<BillItem> conditionPage = billManRepository.getPage(Arrays.asList(new String[] { entityInfo.getLabelType() }),
+                    "",
+                    existEntity.getName(),
+                    1,
+                    pageable);
+            if (ListUtil.isNotEmpty(conditionPage.getContent())) {
+                bill = true;
+            }
+        }
+        if (bill) {
+            if (StringUtil.isNotBlank(markedStr)) {
+                markedStr += "、";
+            }
+            markedStr += "开单合理性规则";
+        }
+
+        if (StringUtil.isNotBlank(markedStr)) {
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, firstStr + markedStr + lastStr);
+        }
+
+        return true;
+    }
+
+
     /**
      * 术语保存
      *

+ 18 - 2
src/main/java/com/diagbot/facade/LisConfigFacade.java

@@ -3,11 +3,9 @@ package com.diagbot.facade;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.diagbot.entity.LisConfig;
 import com.diagbot.enums.IsDeleteEnum;
-import com.diagbot.service.LisConfigService;
 import com.diagbot.service.impl.LisConfigServiceImpl;
 import com.diagbot.util.EntityUtil;
 import com.diagbot.util.ListUtil;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
 import java.util.HashMap;
@@ -71,4 +69,22 @@ public class LisConfigFacade extends LisConfigServiceImpl {
         }
         return retMap;
     }
+
+    /**
+     * 已映射
+     *
+     * @param name
+     * @return
+     */
+    public Boolean isMapping(String name) {
+        QueryWrapper<LisConfig> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("unique_name", name);
+        List<LisConfig> records = this.list(queryWrapper);
+        if (ListUtil.isNotEmpty(records)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
 }

+ 40 - 0
src/main/java/com/diagbot/facade/OperationConfigFacade.java

@@ -0,0 +1,40 @@
+package com.diagbot.facade;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.diagbot.entity.OperationConfig;
+import com.diagbot.enums.IsDeleteEnum;
+import com.diagbot.service.OperationConfigService;
+import com.diagbot.util.ListUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2020/7/29 15:05
+ */
+@Component
+public class OperationConfigFacade {
+    @Autowired
+    private OperationConfigService operationConfigService;
+
+    /**
+     * 已映射
+     *
+     * @param name
+     * @return
+     */
+    public Boolean isMapping(String name) {
+        QueryWrapper<OperationConfig> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("unique_name", name);
+        List<OperationConfig> records = operationConfigService.list(queryWrapper);
+        if (ListUtil.isNotEmpty(records)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+}

+ 17 - 0
src/main/java/com/diagbot/facade/PacsConfigFacade.java

@@ -52,4 +52,21 @@ public class PacsConfigFacade extends PacsConfigServiceImpl {
         return retMap;
     }
 
+    /**
+     * 已映射
+     *
+     * @param name
+     * @return
+     */
+    public Boolean isMapping(String name) {
+        QueryWrapper<PacsConfig> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("unique_name", name);
+        List<PacsConfig> records = this.list(queryWrapper);
+        if (ListUtil.isNotEmpty(records)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
 }

+ 15 - 0
src/main/java/com/diagbot/mapper/DeptConfigMapper.java

@@ -0,0 +1,15 @@
+package com.diagbot.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.diagbot.entity.DeptConfig;
+
+/**
+ * <p>
+ * 科室映射表 Mapper 接口
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-08-12
+ */
+public interface DeptConfigMapper extends BaseMapper<DeptConfig> {
+}

+ 15 - 0
src/main/java/com/diagbot/mapper/DiseaseConfigMapper.java

@@ -0,0 +1,15 @@
+package com.diagbot.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.diagbot.entity.DiseaseConfig;
+
+/**
+ * <p>
+ * 诊断映射表 Mapper 接口
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+public interface DiseaseConfigMapper extends BaseMapper<DiseaseConfig> {
+}

+ 15 - 0
src/main/java/com/diagbot/mapper/DrugConfigMapper.java

@@ -0,0 +1,15 @@
+package com.diagbot.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.diagbot.entity.DrugConfig;
+
+/**
+ * <p>
+ * 药品映射表 Mapper 接口
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+public interface DrugConfigMapper extends BaseMapper<DrugConfig> {
+}

+ 15 - 0
src/main/java/com/diagbot/mapper/OperationConfigMapper.java

@@ -0,0 +1,15 @@
+package com.diagbot.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.diagbot.entity.OperationConfig;
+
+/**
+ * <p>
+ * 手术映射表 Mapper 接口
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+public interface OperationConfigMapper extends BaseMapper<OperationConfig> {
+}

+ 15 - 0
src/main/java/com/diagbot/service/DeptConfigService.java

@@ -0,0 +1,15 @@
+package com.diagbot.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.entity.DeptConfig;
+
+/**
+ * <p>
+ * 科室映射表 服务类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-08-12
+ */
+public interface DeptConfigService extends IService<DeptConfig> {
+}

+ 15 - 0
src/main/java/com/diagbot/service/DiseaseConfigService.java

@@ -0,0 +1,15 @@
+package com.diagbot.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.entity.DiseaseConfig;
+
+/**
+ * <p>
+ * 诊断映射表 服务类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+public interface DiseaseConfigService extends IService<DiseaseConfig> {
+}

+ 15 - 0
src/main/java/com/diagbot/service/DrugConfigService.java

@@ -0,0 +1,15 @@
+package com.diagbot.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.entity.DrugConfig;
+
+/**
+ * <p>
+ * 药品映射表 服务类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+public interface DrugConfigService extends IService<DrugConfig> {
+}

+ 15 - 0
src/main/java/com/diagbot/service/OperationConfigService.java

@@ -0,0 +1,15 @@
+package com.diagbot.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.entity.OperationConfig;
+
+/**
+ * <p>
+ * 手术映射表 服务类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+public interface OperationConfigService extends IService<OperationConfig> {
+}

+ 19 - 0
src/main/java/com/diagbot/service/impl/DeptConfigServiceImpl.java

@@ -0,0 +1,19 @@
+package com.diagbot.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.entity.DeptConfig;
+import com.diagbot.mapper.DeptConfigMapper;
+import com.diagbot.service.DeptConfigService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 科室映射表 服务实现类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-08-12
+ */
+@Service
+public class DeptConfigServiceImpl extends ServiceImpl<DeptConfigMapper, DeptConfig> implements DeptConfigService {
+}

+ 19 - 0
src/main/java/com/diagbot/service/impl/DiseaseConfigServiceImpl.java

@@ -0,0 +1,19 @@
+package com.diagbot.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.entity.DiseaseConfig;
+import com.diagbot.mapper.DiseaseConfigMapper;
+import com.diagbot.service.DiseaseConfigService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 诊断映射表 服务实现类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+@Service
+public class DiseaseConfigServiceImpl extends ServiceImpl<DiseaseConfigMapper, DiseaseConfig> implements DiseaseConfigService {
+}

+ 19 - 0
src/main/java/com/diagbot/service/impl/DrugConfigServiceImpl.java

@@ -0,0 +1,19 @@
+package com.diagbot.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.entity.DrugConfig;
+import com.diagbot.mapper.DrugConfigMapper;
+import com.diagbot.service.DrugConfigService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 药品映射表 服务实现类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+@Service
+public class DrugConfigServiceImpl extends ServiceImpl<DrugConfigMapper, DrugConfig> implements DrugConfigService {
+}

+ 19 - 0
src/main/java/com/diagbot/service/impl/OperationConfigServiceImpl.java

@@ -0,0 +1,19 @@
+package com.diagbot.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.entity.OperationConfig;
+import com.diagbot.mapper.OperationConfigMapper;
+import com.diagbot.service.OperationConfigService;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 手术映射表 服务实现类
+ * </p>
+ *
+ * @author zhaops
+ * @since 2020-07-28
+ */
+@Service
+public class OperationConfigServiceImpl extends ServiceImpl<OperationConfigMapper, OperationConfig> implements OperationConfigService {
+}

+ 45 - 0
src/main/java/com/diagbot/web/EntityInfoController.java

@@ -10,6 +10,7 @@ import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.domain.Page;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -87,6 +88,7 @@ public class EntityInfoController {
                     "min_prod_unit:最小制剂单位(药品代码通用名属性)<br>" +
                     "stand_reg_JiXin:标准注册剂型(药品代码通用名属性)<br>")
     @PostMapping("/saveEntity")
+    @Transactional
     public RespDTO<Boolean> saveEntity(@RequestBody EntityInfo entityInfo) {
         Boolean data = entityInfoFacade.saveEntity(entityInfo);
         return RespDTO.onSuc(data);
@@ -99,4 +101,47 @@ public class EntityInfoController {
         EntityInfo data = entityInfoFacade.getById(idVO.getId());
         return RespDTO.onSuc(data);
     }
+
+    @ApiOperation(value = "术语关联校验(静态知识、术语关联、开单合理性规则)[zhaops]",
+            notes = "id:术语ID<br>" +
+                    "name:术语名称<br>" +
+                    "pycode:拼音编码<br>" +
+                    "status:状态(0-禁用,1-启用,默认1)<br>" +
+                    "is_kl:静态知识标识(0-无,1-有,默认0)<br>" +
+                    "labelType:术语类型-知识图谱标签类型(详情见字典)<br>" +
+                    "age:年龄<br>" +
+                    "gender:性别(男、女)<br>" +
+                    "unit:单位(实验室检查名称、实验室检查、体征、实验室检查危急值)<br>" +
+                    "alias:别名(医保诊断名称、药物过敏原、药品注册名称)<br>" +
+                    "result:结果(药物过敏原、药品注册名称)<br>" +
+                    "minval:最小值(实验室检查名称)<br>" +
+                    "maxval:最大值(实验室检查名称)<br>" +
+                    "range:范围(0-范围内,1-范围外,默认0)<br>" +
+                    "category:诊断分类(医保诊断名称属性:1、2,无默认值)<br>" +
+                    "dept:诊断所属科室(医保诊断名称属性)<br>" +
+                    "minAge:年龄下限(医保诊断名称属性)<br>" +
+                    "maxAge:年龄上限(医保诊断名称属性)<br>" +
+                    "opgrade:手术等级(医保手术和操作属性:0、1、2、3、4,默认0)<br>" +
+                    "highriskcond:高危条件(医保手术和操作属性)<br>" +
+                    "special:特殊标志(化验细项及结果属性:是)<br>" +
+                    "medtype:药品类型(药物过敏原属性:药品、药品类别)<br>" +
+                    "risklevel:药品高危级别(药品注册名称属性:A级高危、B级高危、C级高危)<br>" +
+                    "conflict_geiyao:禁忌给药途径(药品注册名称属性)<br>" +
+                    "conflict_gender:禁忌性别(药品注册名称属性:男、女)<br>" +
+                    "min_pack_num:最小包装数量(药品代码通用名属性)<br>" +
+                    "reg_JiXin:注册剂型(药品代码通用名属性)<br>" +
+                    "benWei_Code:药品本位码(药品代码通用名属性)<br>" +
+                    "min_pack_unit:最小包装单位(药品代码通用名属性)<br>" +
+                    "reg_GuiGe:注册规格(药品代码通用名属性)<br>" +
+                    "pack_CaiLiao:包装材质(药品代码通用名属性)<br>" +
+                    "producer:药品企业(药品代码通用名属性)<br>" +
+                    "license_num:批准文号(药品代码通用名属性)<br>" +
+                    "min_prod_unit:最小制剂单位(药品代码通用名属性)<br>" +
+                    "stand_reg_JiXin:标准注册剂型(药品代码通用名属性)<br>")
+    @PostMapping("/dataVerify")
+    @Transactional
+    public RespDTO<Boolean> dataVerify(@RequestBody EntityInfo entityInfo) {
+        Boolean data = entityInfoFacade.dataVerify(entityInfo);
+        return RespDTO.onSuc(data);
+    }
 }

+ 20 - 0
src/main/resources/mapper/DeptConfigMapper.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.DeptConfigMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.DeptConfig">
+        <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="hospital_id" property="hospitalId" />
+        <result column="his_name" property="hisName" />
+        <result column="his_code" property="hisCode" />
+        <result column="unique_name" property="uniqueName" />
+        <result column="unique_code" property="uniqueCode" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
src/main/resources/mapper/DiseaseConfigMapper.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.DiseaseConfigMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.DiseaseConfig">
+        <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="hospital_id" property="hospitalId" />
+        <result column="his_name" property="hisName" />
+        <result column="unique_name" property="uniqueName" />
+        <result column="icd_code" property="icdCode" />
+    </resultMap>
+
+</mapper>

+ 20 - 0
src/main/resources/mapper/DrugConfigMapper.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.DrugConfigMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.DrugConfig">
+        <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="hospital_id" property="hospitalId" />
+        <result column="his_name" property="hisName" />
+        <result column="unique_name" property="uniqueName" />
+        <result column="unique_code" property="uniqueCode" />
+        <result column="form" property="form" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
src/main/resources/mapper/OperationConfigMapper.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.OperationConfigMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.OperationConfig">
+        <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="hospital_id" property="hospitalId" />
+        <result column="his_name" property="hisName" />
+        <result column="unique_name" property="uniqueName" />
+        <result column="unique_code" property="uniqueCode" />
+    </resultMap>
+
+</mapper>