Explorar o código

预问诊保存相关bean

rgb %!s(int64=6) %!d(string=hai) anos
pai
achega
cf195e4704
Modificáronse 25 ficheiros con 1256 adicións e 1 borrados
  1. 173 0
      prec-service/src/main/java/com/diagbot/entity/InquiryDetail.java
  2. 291 0
      prec-service/src/main/java/com/diagbot/entity/InquiryEvaluator.java
  3. 251 0
      prec-service/src/main/java/com/diagbot/entity/InquiryInfo.java
  4. 173 0
      prec-service/src/main/java/com/diagbot/entity/InquiryReport.java
  5. 16 0
      prec-service/src/main/java/com/diagbot/facade/InquiryDetailFacade.java
  6. 16 0
      prec-service/src/main/java/com/diagbot/facade/InquiryEvaluatorFacade.java
  7. 16 0
      prec-service/src/main/java/com/diagbot/facade/InquiryInfoFacade.java
  8. 16 0
      prec-service/src/main/java/com/diagbot/facade/InquiryReportFacade.java
  9. 16 0
      prec-service/src/main/java/com/diagbot/mapper/InquiryDetailMapper.java
  10. 16 0
      prec-service/src/main/java/com/diagbot/mapper/InquiryEvaluatorMapper.java
  11. 16 0
      prec-service/src/main/java/com/diagbot/mapper/InquiryInfoMapper.java
  12. 16 0
      prec-service/src/main/java/com/diagbot/mapper/InquiryReportMapper.java
  13. 16 0
      prec-service/src/main/java/com/diagbot/service/InquiryDetailService.java
  14. 16 0
      prec-service/src/main/java/com/diagbot/service/InquiryEvaluatorService.java
  15. 16 0
      prec-service/src/main/java/com/diagbot/service/InquiryInfoService.java
  16. 16 0
      prec-service/src/main/java/com/diagbot/service/InquiryReportService.java
  17. 20 0
      prec-service/src/main/java/com/diagbot/service/impl/InquiryDetailServiceImpl.java
  18. 20 0
      prec-service/src/main/java/com/diagbot/service/impl/InquiryEvaluatorServiceImpl.java
  19. 20 0
      prec-service/src/main/java/com/diagbot/service/impl/InquiryInfoServiceImpl.java
  20. 20 0
      prec-service/src/main/java/com/diagbot/service/impl/InquiryReportServiceImpl.java
  21. 20 0
      prec-service/src/main/resources/mapper/InquiryDetailMapper.xml
  22. 29 0
      prec-service/src/main/resources/mapper/InquiryEvaluatorMapper.xml
  23. 26 0
      prec-service/src/main/resources/mapper/InquiryInfoMapper.xml
  24. 20 0
      prec-service/src/main/resources/mapper/InquiryReportMapper.xml
  25. 1 1
      prec-service/src/test/java/com/diagbot/CodeGeneration.java

+ 173 - 0
prec-service/src/main/java/com/diagbot/entity/InquiryDetail.java

@@ -0,0 +1,173 @@
+package com.diagbot.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * <p>
+ * 问诊记录-明细表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@TableName("prec_inquiry_detail")
+public class InquiryDetail 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 inquiryId;
+
+    /**
+     * 类型(1主诉,2现病史,3其他史,4补充内容)
+     */
+    private Integer type;
+
+    /**
+     * 内容字符串
+     */
+    private String content;
+
+    /**
+     * 内容字符串纯文本
+     */
+    private String contentValue;
+
+    /**
+     * 备注
+     */
+    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 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 getInquiryId() {
+        return inquiryId;
+    }
+
+    public void setInquiryId(Long inquiryId) {
+        this.inquiryId = inquiryId;
+    }
+    public Integer getType() {
+        return type;
+    }
+
+    public void setType(Integer type) {
+        this.type = type;
+    }
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+    public String getContentValue() {
+        return contentValue;
+    }
+
+    public void setContentValue(String contentValue) {
+        this.contentValue = contentValue;
+    }
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        return "InquiryDetail{" +
+        "id=" + id +
+        ", isDeleted=" + isDeleted +
+        ", gmtCreate=" + gmtCreate +
+        ", gmtModified=" + gmtModified +
+        ", creator=" + creator +
+        ", modifier=" + modifier +
+        ", inquiryId=" + inquiryId +
+        ", type=" + type +
+        ", content=" + content +
+        ", contentValue=" + contentValue +
+        ", remark=" + remark +
+        "}";
+    }
+}

+ 291 - 0
prec-service/src/main/java/com/diagbot/entity/InquiryEvaluator.java

@@ -0,0 +1,291 @@
+package com.diagbot.entity;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * <p>
+ * 问诊记录-儿童体质辨识表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@TableName("prec_inquiry_evaluator")
+public class InquiryEvaluator 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 inquiryId;
+
+    /**
+     * 医院编码
+     */
+    private String hospitalCode;
+
+    /**
+     * 姓名
+     */
+    private String name;
+
+    /**
+     * 手机号
+     */
+    private String phone;
+
+    /**
+     * 性别(1:男 2:女)
+     */
+    private Integer sex;
+
+    /**
+     * 年龄
+     */
+    private Integer age;
+
+    /**
+     * 平和体质转化分
+     */
+    private BigDecimal mildValue;
+
+    /**
+     * 气虚体质转化分
+     */
+    private BigDecimal faintValue;
+
+    /**
+     * 湿滞体质转化分
+     */
+    private BigDecimal wetValue;
+
+    /**
+     * 心肝火旺体质转化分
+     */
+    private BigDecimal heartValue;
+
+    /**
+     * 积滞体质转化分
+     */
+    private BigDecimal stagnantValue;
+
+    /**
+     * 异禀体质转化分
+     */
+    private BigDecimal exceptValue;
+
+    /**
+     * 体质结果
+     */
+    private String physicalRes;
+
+    /**
+     * 需要显示的体质逗号隔开
+     */
+    private String physicalTypes;
+
+    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 getInquiryId() {
+        return inquiryId;
+    }
+
+    public void setInquiryId(Long inquiryId) {
+        this.inquiryId = inquiryId;
+    }
+    public String getHospitalCode() {
+        return hospitalCode;
+    }
+
+    public void setHospitalCode(String hospitalCode) {
+        this.hospitalCode = hospitalCode;
+    }
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+    public String getPhone() {
+        return phone;
+    }
+
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+    public Integer getSex() {
+        return sex;
+    }
+
+    public void setSex(Integer sex) {
+        this.sex = sex;
+    }
+    public Integer getAge() {
+        return age;
+    }
+
+    public void setAge(Integer age) {
+        this.age = age;
+    }
+    public BigDecimal getMildValue() {
+        return mildValue;
+    }
+
+    public void setMildValue(BigDecimal mildValue) {
+        this.mildValue = mildValue;
+    }
+    public BigDecimal getFaintValue() {
+        return faintValue;
+    }
+
+    public void setFaintValue(BigDecimal faintValue) {
+        this.faintValue = faintValue;
+    }
+    public BigDecimal getWetValue() {
+        return wetValue;
+    }
+
+    public void setWetValue(BigDecimal wetValue) {
+        this.wetValue = wetValue;
+    }
+    public BigDecimal getHeartValue() {
+        return heartValue;
+    }
+
+    public void setHeartValue(BigDecimal heartValue) {
+        this.heartValue = heartValue;
+    }
+    public BigDecimal getStagnantValue() {
+        return stagnantValue;
+    }
+
+    public void setStagnantValue(BigDecimal stagnantValue) {
+        this.stagnantValue = stagnantValue;
+    }
+    public BigDecimal getExceptValue() {
+        return exceptValue;
+    }
+
+    public void setExceptValue(BigDecimal exceptValue) {
+        this.exceptValue = exceptValue;
+    }
+    public String getPhysicalRes() {
+        return physicalRes;
+    }
+
+    public void setPhysicalRes(String physicalRes) {
+        this.physicalRes = physicalRes;
+    }
+    public String getPhysicalTypes() {
+        return physicalTypes;
+    }
+
+    public void setPhysicalTypes(String physicalTypes) {
+        this.physicalTypes = physicalTypes;
+    }
+
+    @Override
+    public String toString() {
+        return "InquiryEvaluator{" +
+        "id=" + id +
+        ", isDeleted=" + isDeleted +
+        ", gmtCreate=" + gmtCreate +
+        ", gmtModified=" + gmtModified +
+        ", creator=" + creator +
+        ", modifier=" + modifier +
+        ", inquiryId=" + inquiryId +
+        ", hospitalCode=" + hospitalCode +
+        ", name=" + name +
+        ", phone=" + phone +
+        ", sex=" + sex +
+        ", age=" + age +
+        ", mildValue=" + mildValue +
+        ", faintValue=" + faintValue +
+        ", wetValue=" + wetValue +
+        ", heartValue=" + heartValue +
+        ", stagnantValue=" + stagnantValue +
+        ", exceptValue=" + exceptValue +
+        ", physicalRes=" + physicalRes +
+        ", physicalTypes=" + physicalTypes +
+        "}";
+    }
+}

+ 251 - 0
prec-service/src/main/java/com/diagbot/entity/InquiryInfo.java

@@ -0,0 +1,251 @@
+package com.diagbot.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * <p>
+ * 问诊记录-主表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@TableName("prec_inquiry_info")
+public class InquiryInfo 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;
+
+    /**
+     * 科室id
+     */
+    private Long hospitalDeptId;
+
+    /**
+     * 医生id
+     */
+    private Long doctorId;
+
+    /**
+     * 患者id
+     */
+    private Long patientId;
+
+    /**
+     * 就诊序列号
+     */
+    private String inquiryCode;
+
+    /**
+     * 就诊状态(0待接诊,1接诊中,2完成接诊)
+     */
+    private Integer regVisitedState;
+
+    /**
+     * 分类(1:门诊,2:住院)
+     */
+    private Integer type;
+
+    /**
+     * 诊断
+     */
+    private String diagnose;
+
+    /**
+     * 类型:0:结构化 1:文本模式
+     */
+    private Integer sign;
+
+    /**
+     * 内容JSON字符串
+     */
+    private String dataJson;
+
+    /**
+     * 备注
+     */
+    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 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 Long getHospitalDeptId() {
+        return hospitalDeptId;
+    }
+
+    public void setHospitalDeptId(Long hospitalDeptId) {
+        this.hospitalDeptId = hospitalDeptId;
+    }
+    public Long getDoctorId() {
+        return doctorId;
+    }
+
+    public void setDoctorId(Long doctorId) {
+        this.doctorId = doctorId;
+    }
+    public Long getPatientId() {
+        return patientId;
+    }
+
+    public void setPatientId(Long patientId) {
+        this.patientId = patientId;
+    }
+    public String getInquiryCode() {
+        return inquiryCode;
+    }
+
+    public void setInquiryCode(String inquiryCode) {
+        this.inquiryCode = inquiryCode;
+    }
+    public Integer getRegVisitedState() {
+        return regVisitedState;
+    }
+
+    public void setRegVisitedState(Integer regVisitedState) {
+        this.regVisitedState = regVisitedState;
+    }
+    public Integer getType() {
+        return type;
+    }
+
+    public void setType(Integer type) {
+        this.type = type;
+    }
+    public String getDiagnose() {
+        return diagnose;
+    }
+
+    public void setDiagnose(String diagnose) {
+        this.diagnose = diagnose;
+    }
+    public Integer getSign() {
+        return sign;
+    }
+
+    public void setSign(Integer sign) {
+        this.sign = sign;
+    }
+    public String getDataJson() {
+        return dataJson;
+    }
+
+    public void setDataJson(String dataJson) {
+        this.dataJson = dataJson;
+    }
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        return "InquiryInfo{" +
+        "id=" + id +
+        ", isDeleted=" + isDeleted +
+        ", gmtCreate=" + gmtCreate +
+        ", gmtModified=" + gmtModified +
+        ", creator=" + creator +
+        ", modifier=" + modifier +
+        ", hospitalId=" + hospitalId +
+        ", hospitalDeptId=" + hospitalDeptId +
+        ", doctorId=" + doctorId +
+        ", patientId=" + patientId +
+        ", inquiryCode=" + inquiryCode +
+        ", regVisitedState=" + regVisitedState +
+        ", type=" + type +
+        ", diagnose=" + diagnose +
+        ", sign=" + sign +
+        ", dataJson=" + dataJson +
+        ", remark=" + remark +
+        "}";
+    }
+}

+ 173 - 0
prec-service/src/main/java/com/diagbot/entity/InquiryReport.java

@@ -0,0 +1,173 @@
+package com.diagbot.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+/**
+ * <p>
+ * 问诊记录-治疗报告图片表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@TableName("prec_inquiry_report")
+public class InquiryReport 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 inquiryId;
+
+    /**
+     * 原图
+     */
+    private String originalImage;
+
+    /**
+     * 缩略图
+     */
+    private String narrowImage;
+
+    /**
+     * 图片排序号
+     */
+    private Integer orderNum;
+
+    /**
+     * 备注
+     */
+    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 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 getInquiryId() {
+        return inquiryId;
+    }
+
+    public void setInquiryId(Long inquiryId) {
+        this.inquiryId = inquiryId;
+    }
+    public String getOriginalImage() {
+        return originalImage;
+    }
+
+    public void setOriginalImage(String originalImage) {
+        this.originalImage = originalImage;
+    }
+    public String getNarrowImage() {
+        return narrowImage;
+    }
+
+    public void setNarrowImage(String narrowImage) {
+        this.narrowImage = narrowImage;
+    }
+    public Integer getOrderNum() {
+        return orderNum;
+    }
+
+    public void setOrderNum(Integer orderNum) {
+        this.orderNum = orderNum;
+    }
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        return "InquiryReport{" +
+        "id=" + id +
+        ", isDeleted=" + isDeleted +
+        ", gmtCreate=" + gmtCreate +
+        ", gmtModified=" + gmtModified +
+        ", creator=" + creator +
+        ", modifier=" + modifier +
+        ", inquiryId=" + inquiryId +
+        ", originalImage=" + originalImage +
+        ", narrowImage=" + narrowImage +
+        ", orderNum=" + orderNum +
+        ", remark=" + remark +
+        "}";
+    }
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/facade/InquiryDetailFacade.java

@@ -0,0 +1,16 @@
+package com.diagbot.facade;
+
+import org.springframework.stereotype.Component;
+
+import com.diagbot.service.impl.InquiryDetailServiceImpl;
+
+/**
+ * @author: zhoutg
+ * @time: 2018/8/6 9:11
+ */
+@Component
+public class InquiryDetailFacade extends InquiryDetailServiceImpl {
+
+    
+
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/facade/InquiryEvaluatorFacade.java

@@ -0,0 +1,16 @@
+package com.diagbot.facade;
+
+import org.springframework.stereotype.Component;
+
+import com.diagbot.service.impl.InquiryEvaluatorServiceImpl;
+
+/**
+ * @author: zhoutg
+ * @time: 2018/8/6 9:11
+ */
+@Component
+public class InquiryEvaluatorFacade extends InquiryEvaluatorServiceImpl {
+
+    
+
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/facade/InquiryInfoFacade.java

@@ -0,0 +1,16 @@
+package com.diagbot.facade;
+
+import org.springframework.stereotype.Component;
+
+import com.diagbot.service.impl.InquiryInfoServiceImpl;
+
+/**
+ * @author: zhoutg
+ * @time: 2018/8/6 9:11
+ */
+@Component
+public class InquiryInfoFacade extends InquiryInfoServiceImpl {
+
+    
+
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/facade/InquiryReportFacade.java

@@ -0,0 +1,16 @@
+package com.diagbot.facade;
+
+import org.springframework.stereotype.Component;
+
+import com.diagbot.service.impl.InquiryReportServiceImpl;
+
+/**
+ * @author: zhoutg
+ * @time: 2018/8/6 9:11
+ */
+@Component
+public class InquiryReportFacade extends InquiryReportServiceImpl {
+
+    
+
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/mapper/InquiryDetailMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.InquiryDetail;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 问诊记录-明细表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryDetailMapper extends BaseMapper<InquiryDetail> {
+
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/mapper/InquiryEvaluatorMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.InquiryEvaluator;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 问诊记录-儿童体质辨识表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryEvaluatorMapper extends BaseMapper<InquiryEvaluator> {
+
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/mapper/InquiryInfoMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.InquiryInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 问诊记录-主表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryInfoMapper extends BaseMapper<InquiryInfo> {
+
+}

+ 16 - 0
prec-service/src/main/java/com/diagbot/mapper/InquiryReportMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.InquiryReport;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 问诊记录-治疗报告图片表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryReportMapper extends BaseMapper<InquiryReport> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.InquiryDetail;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 问诊记录-明细表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryDetailService extends IService<InquiryDetail> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.InquiryEvaluator;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 问诊记录-儿童体质辨识表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryEvaluatorService extends IService<InquiryEvaluator> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.InquiryInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 问诊记录-主表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryInfoService extends IService<InquiryInfo> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.InquiryReport;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 问诊记录-治疗报告图片表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+public interface InquiryReportService extends IService<InquiryReport> {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.InquiryDetail;
+import com.diagbot.mapper.InquiryDetailMapper;
+import com.diagbot.service.InquiryDetailService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 问诊记录-明细表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@Service
+public class InquiryDetailServiceImpl extends ServiceImpl<InquiryDetailMapper, InquiryDetail> implements InquiryDetailService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.InquiryEvaluator;
+import com.diagbot.mapper.InquiryEvaluatorMapper;
+import com.diagbot.service.InquiryEvaluatorService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 问诊记录-儿童体质辨识表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@Service
+public class InquiryEvaluatorServiceImpl extends ServiceImpl<InquiryEvaluatorMapper, InquiryEvaluator> implements InquiryEvaluatorService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.InquiryInfo;
+import com.diagbot.mapper.InquiryInfoMapper;
+import com.diagbot.service.InquiryInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 问诊记录-主表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@Service
+public class InquiryInfoServiceImpl extends ServiceImpl<InquiryInfoMapper, InquiryInfo> implements InquiryInfoService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.InquiryReport;
+import com.diagbot.mapper.InquiryReportMapper;
+import com.diagbot.service.InquiryReportService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 问诊记录-治疗报告图片表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2019-06-17
+ */
+@Service
+public class InquiryReportServiceImpl extends ServiceImpl<InquiryReportMapper, InquiryReport> implements InquiryReportService {
+
+}

+ 20 - 0
prec-service/src/main/resources/mapper/InquiryDetailMapper.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.InquiryDetailMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.InquiryDetail">
+        <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="inquiry_id" property="inquiryId" />
+        <result column="type" property="type" />
+        <result column="content" property="content" />
+        <result column="content_value" property="contentValue" />
+        <result column="remark" property="remark" />
+    </resultMap>
+
+</mapper>

+ 29 - 0
prec-service/src/main/resources/mapper/InquiryEvaluatorMapper.xml

@@ -0,0 +1,29 @@
+<?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.InquiryEvaluatorMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.InquiryEvaluator">
+        <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="inquiry_id" property="inquiryId" />
+        <result column="hospital_code" property="hospitalCode" />
+        <result column="name" property="name" />
+        <result column="phone" property="phone" />
+        <result column="sex" property="sex" />
+        <result column="age" property="age" />
+        <result column="mild_value" property="mildValue" />
+        <result column="faint_value" property="faintValue" />
+        <result column="wet_value" property="wetValue" />
+        <result column="heart_value" property="heartValue" />
+        <result column="stagnant_value" property="stagnantValue" />
+        <result column="except_value" property="exceptValue" />
+        <result column="physical_res" property="physicalRes" />
+        <result column="physical_types" property="physicalTypes" />
+    </resultMap>
+
+</mapper>

+ 26 - 0
prec-service/src/main/resources/mapper/InquiryInfoMapper.xml

@@ -0,0 +1,26 @@
+<?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.InquiryInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.InquiryInfo">
+        <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="hospital_dept_id" property="hospitalDeptId" />
+        <result column="doctor_id" property="doctorId" />
+        <result column="patient_id" property="patientId" />
+        <result column="inquiry_code" property="inquiryCode" />
+        <result column="reg_visited_state" property="regVisitedState" />
+        <result column="type" property="type" />
+        <result column="diagnose" property="diagnose" />
+        <result column="sign" property="sign" />
+        <result column="data_json" property="dataJson" />
+        <result column="remark" property="remark" />
+    </resultMap>
+
+</mapper>

+ 20 - 0
prec-service/src/main/resources/mapper/InquiryReportMapper.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.InquiryReportMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.InquiryReport">
+        <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="inquiry_id" property="inquiryId" />
+        <result column="original_image" property="originalImage" />
+        <result column="narrow_image" property="narrowImage" />
+        <result column="order_num" property="orderNum" />
+        <result column="remark" property="remark" />
+    </resultMap>
+
+</mapper>

+ 1 - 1
prec-service/src/test/java/com/diagbot/CodeGeneration.java

@@ -56,7 +56,7 @@ public class CodeGeneration {
         StrategyConfig strategy = new StrategyConfig();
         strategy.setTablePrefix(new String[] { "prec_" });// 此处可以修改为您的表前缀
         strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
-        strategy.setInclude(new String[] { "prec_physical_info" }); // 需要生成的表
+        strategy.setInclude(new String[] { "prec_inquiry_info","prec_inquiry_detail","prec_inquiry_evaluator","prec_inquiry_report" }); // 需要生成的表
 
         strategy.setSuperServiceClass(null);
         strategy.setSuperServiceImplClass(null);