Quellcode durchsuchen

病历评分实体类

zhoutg vor 5 Jahren
Ursprung
Commit
fa647a9835
31 geänderte Dateien mit 1783 neuen und 3 gelöschten Zeilen
  1. 168 0
      src/main/java/com/diagbot/entity/DoctorAdvice.java
  2. 82 0
      src/main/java/com/diagbot/entity/HomeDiagnoseInfo.java
  3. 118 0
      src/main/java/com/diagbot/entity/HomeOperationInfo.java
  4. 676 0
      src/main/java/com/diagbot/entity/HomePage.java
  5. 80 0
      src/main/java/com/diagbot/entity/MedicalRecord.java
  6. 74 0
      src/main/java/com/diagbot/entity/MedicalRecordContent.java
  7. 16 0
      src/main/java/com/diagbot/mapper/DoctorAdviceMapper.java
  8. 16 0
      src/main/java/com/diagbot/mapper/HomeDiagnoseInfoMapper.java
  9. 16 0
      src/main/java/com/diagbot/mapper/HomeOperationInfoMapper.java
  10. 16 0
      src/main/java/com/diagbot/mapper/HomePageMapper.java
  11. 16 0
      src/main/java/com/diagbot/mapper/MedicalRecordContentMapper.java
  12. 16 0
      src/main/java/com/diagbot/mapper/MedicalRecordMapper.java
  13. 16 0
      src/main/java/com/diagbot/service/DoctorAdviceService.java
  14. 16 0
      src/main/java/com/diagbot/service/HomeDiagnoseInfoService.java
  15. 16 0
      src/main/java/com/diagbot/service/HomeOperationInfoService.java
  16. 16 0
      src/main/java/com/diagbot/service/HomePageService.java
  17. 16 0
      src/main/java/com/diagbot/service/MedicalRecordContentService.java
  18. 16 0
      src/main/java/com/diagbot/service/MedicalRecordService.java
  19. 20 0
      src/main/java/com/diagbot/service/impl/DoctorAdviceServiceImpl.java
  20. 20 0
      src/main/java/com/diagbot/service/impl/HomeDiagnoseInfoServiceImpl.java
  21. 20 0
      src/main/java/com/diagbot/service/impl/HomeOperationInfoServiceImpl.java
  22. 20 0
      src/main/java/com/diagbot/service/impl/HomePageServiceImpl.java
  23. 20 0
      src/main/java/com/diagbot/service/impl/MedicalRecordContentServiceImpl.java
  24. 20 0
      src/main/java/com/diagbot/service/impl/MedicalRecordServiceImpl.java
  25. 38 0
      src/main/resources/mapper/DoctorAdviceMapper.xml
  26. 24 0
      src/main/resources/mapper/HomeDiagnoseInfoMapper.xml
  27. 28 0
      src/main/resources/mapper/HomeOperationInfoMapper.xml
  28. 140 0
      src/main/resources/mapper/HomePageMapper.xml
  29. 19 0
      src/main/resources/mapper/MedicalRecordContentMapper.xml
  30. 21 0
      src/main/resources/mapper/MedicalRecordMapper.xml
  31. 3 3
      src/test/java/com/diagbot/CodeGeneration.java

+ 168 - 0
src/main/java/com/diagbot/entity/DoctorAdvice.java

@@ -0,0 +1,168 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+import java.util.Date;
+
+/**
+ * <p>
+ * 病人医嘱
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@TableName("med_doctor_advice")
+@Data
+public class DoctorAdvice implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 病人医嘱ID
+     */
+    private String doctorAdviceId;
+
+    /**
+     * 医院id
+     */
+    private Long hospitalId;
+
+    /**
+     * 病人ID
+     */
+    private String behospitalCode;
+
+    /**
+     * 医生开单判别
+     */
+    private String orderDoctorName;
+
+    /**
+     * 医嘱频率判别
+     */
+    private String frequency;
+
+    /**
+     * 父类医嘱ID
+     */
+    private String parentTypeId;
+
+    /**
+     * 医嘱类型判别(嘱托长嘱、长期医嘱等)
+     */
+    private String doctorAdviceType;
+
+    /**
+     * 一次使用数量
+     */
+    private String usage;
+
+    /**
+     * 一次用量单位
+     */
+    private String usageUnit;
+
+    /**
+     * 医嘱单次剂量
+     */
+    private String dose;
+
+    /**
+     * 单次剂量单位
+     */
+    private String doseUnit;
+
+    /**
+     * 给药方式
+     */
+    private String medModeType;
+
+    /**
+     * 医嘱频率
+     */
+    private String daFrequency;
+
+    /**
+     * 医嘱处理类型
+     */
+    private String daDealType;
+
+    /**
+     * 医嘱开始时间
+     */
+    private LocalDateTime daStartDate;
+
+    /**
+     * 医嘱项目名称
+     */
+    private String daItemName;
+
+    /**
+     * 医嘱状态判别
+     */
+    private String daStatus;
+
+    /**
+     * 医嘱结束时间
+     */
+    private Date daStopDate;
+
+    /**
+     * 医嘱同组序号
+     */
+    private String daGroupNo;
+
+    /**
+     * 医嘱处方类型(检验、描述医嘱、膳食、西药、护理等)
+     */
+    private String daPrescriptionType;
+
+    /**
+     * 医嘱领药类型
+     */
+    private String daMedType;
+
+    /**
+     * 医生嘱托
+     */
+    private String doctorNotice;
+
+    /**
+     * 开单医生ID
+     */
+    private String doctorId;
+
+    /**
+     * 开单医生姓名
+     */
+    private String doctorName;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+}

+ 82 - 0
src/main/java/com/diagbot/entity/HomeDiagnoseInfo.java

@@ -0,0 +1,82 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@TableName("med_home_diagnose_info")
+@Data
+public class HomeDiagnoseInfo implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 病案首页ID
+     */
+    private String homePageId;
+
+    /**
+     * 医院ID
+     */
+    private Long hospitalId;
+
+    /**
+     * 诊断序号
+     */
+    private String diagnoseOrderNo;
+
+    /**
+     * 诊断类别(主要诊断、其他诊断)
+     */
+    private String diagnoseType;
+
+    /**
+     * 诊断判别(主、次)
+     */
+    private String diagnoseTypeShort;
+
+    private String diagnoseName;
+
+    private String behospitalType;
+
+    private String leaveHospitalType;
+
+    private String pathologyDiagnose;
+
+    private String icdCode;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+}

+ 118 - 0
src/main/java/com/diagbot/entity/HomeOperationInfo.java

@@ -0,0 +1,118 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@TableName("med_home_operation_info")
+@Data
+public class HomeOperationInfo implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 病案首页ID
+     */
+    private String homePageId;
+
+    /**
+     * 医院ID
+     */
+    private Long hospitalId;
+
+    /**
+     * 手术序号
+     */
+    private String operationOrderNo;
+
+    /**
+     * 手术日期
+     */
+    private Date operationDate;
+
+    /**
+     * 手术编码
+     */
+    private String operationCode;
+
+    /**
+     * 手术医生ID
+     */
+    private String operationDoctorId;
+
+    /**
+     * 一助医生ID
+     */
+    private String firstAssistantId;
+
+    /**
+     * 二助医生ID
+     */
+    private String secondAssistantId;
+
+    /**
+     * 切口等级
+     */
+    private String cutLevel;
+
+    /**
+     * 愈合等级
+     */
+    private String healingLevel;
+
+    /**
+     * 手术名称
+     */
+    private String operationName;
+
+    /**
+     * 手术级别
+     */
+    private String operationLevel;
+
+    /**
+     * 麻醉方式(全麻、局麻、静脉麻醉)
+     */
+    private String anaesthesiaName;
+
+    /**
+     * 拟手术名称
+     */
+    private String shamOperationName;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+}

+ 676 - 0
src/main/java/com/diagbot/entity/HomePage.java

@@ -0,0 +1,676 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@TableName("med_home_page")
+public class HomePage implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 病案首页编号
+     */
+    private String homePageId;
+
+    /**
+     * 医院ID
+     */
+    private Long hospitalId;
+
+    /**
+     * 病人住院序号
+     */
+    private String behospitalCode;
+
+    /**
+     * 组织机构id
+     */
+    private String hospitalCode;
+
+    /**
+     * 医疗机构名称
+     */
+    private String hospitalName;
+
+    /**
+     * 医疗机构代码
+     */
+    private String orgCode;
+
+    /**
+     * 医疗付费方式
+     */
+    private String payType;
+
+    /**
+     * 健康卡号
+     */
+    private String healthCard;
+
+    /**
+     * 住院次数
+     */
+    private String behospitalNum;
+
+    /**
+     * 病案号
+     */
+    private String fileCode;
+
+    /**
+     * 姓名
+     */
+    private String name;
+
+    /**
+     * 性别
+     */
+    private String sex;
+
+    /**
+     * 出生日期
+     */
+    private Date birthday;
+
+    /**
+     * 年龄
+     */
+    private String age;
+
+    /**
+     * 年龄单位
+     */
+    private String ageUnit;
+
+    /**
+     * 国籍
+     */
+    private String nationality;
+
+    /**
+     * 新生儿出生月数
+     */
+    private String newbornMonth;
+
+    /**
+     * 新生儿出生天数
+     */
+    private String newbornDay;
+
+    /**
+     * 新生儿出生体重
+     */
+    private String newbornWeight;
+
+    /**
+     * 新生儿入院体重
+     */
+    private String newbornBehospitalWeight;
+
+    /**
+     * 出生地
+     */
+    private String bornAddress;
+
+    /**
+     * 籍贯
+     */
+    private String bornPlace;
+
+    /**
+     * 民族
+     */
+    private String nation;
+
+    /**
+     * 身份证号
+     */
+    private String identityCardNo;
+
+    /**
+     * 职业
+     */
+    private String jobType;
+
+    /**
+     * 婚姻
+     */
+    private String marriage;
+
+    /**
+     * 现住址
+     */
+    private String curAddress;
+
+    /**
+     * 现住址电话
+     */
+    private String curPhone;
+
+    /**
+     * 现住址邮编
+     */
+    private String curPostCode;
+
+    /**
+     * 户口地址
+     */
+    private String residenceAddress;
+
+    /**
+     * 户口地址邮编
+     */
+    private String residencePostCode;
+
+    /**
+     * 工作单位
+     */
+    private String workAddress;
+
+    /**
+     * 工作单位电话
+     */
+    private String workPhone;
+
+    /**
+     * 工作单位邮编
+     */
+    private String workPostCode;
+
+    /**
+     * 联系人姓名
+     */
+    private String contactName;
+
+    /**
+     * 联系人关系
+     */
+    private String contactRelation;
+
+    /**
+     * 联系人地址
+     */
+    private String contactAddress;
+
+    /**
+     * 联系人电话
+     */
+    private String contactPhone;
+
+    /**
+     * 入院途径
+     */
+    private String behospitalWay;
+
+    /**
+     * 入院时间
+     */
+    private Date behospitalDate;
+
+    /**
+     * 入院科别
+     */
+    private String behospitalDept;
+
+    /**
+     * 入院病房
+     */
+    private String behospitalWard;
+
+    /**
+     * 入院床位序号
+     */
+    private String behospitalBedId;
+
+    /**
+     * 入院床位号码
+     */
+    private String behospitalBedCode;
+
+    /**
+     * 转科科别
+     */
+    private String changeDept;
+
+    /**
+     * 出院时间
+     */
+    private Date leaveHospitalDate;
+
+    /**
+     * 出院科别
+     */
+    private String leaveHospitalDept;
+
+    /**
+     * 出院病房
+     */
+    private String leaveHospitalWard;
+
+    /**
+     * 出院床位序号
+     */
+    private String leaveHospitalBedId;
+
+    /**
+     * 出院床位号码
+     */
+    private String leaveHospitalBedCode;
+
+    /**
+     * 实际住院天数
+     */
+    private String behospitalDayNum;
+
+    /**
+     * 门急诊诊断
+     */
+    private String outpatientEmrDiagnose;
+
+    /**
+     * 门急诊诊断编码
+     */
+    private String outpatientEmrDiagnoseCode;
+
+    /**
+     * 损伤中毒因素
+     */
+    private String poisonFactor;
+
+    /**
+     * 损伤中毒因素编码
+     */
+    private String poisonFactorCode;
+
+    /**
+     * 病理诊断
+     */
+    private String pathologyDiagnose;
+
+    /**
+     * 病理诊断编码
+     */
+    private String pathologyDiagnoseCode;
+
+    /**
+     * 病理诊断编号
+     */
+    private String pathologyDiagnoseId;
+
+    /**
+     * 药物过敏
+     */
+    private String isMedAllergy;
+
+    /**
+     * 过敏药物
+     */
+    private String medAllergyName;
+
+    /**
+     * 死亡患者尸检
+     */
+    private String autopsy;
+
+    /**
+     * 血型
+     */
+    private String bloodType;
+
+    /**
+     * Rh
+     */
+    private String rh;
+
+    /**
+     * 科主任
+     */
+    private String deptDirector;
+
+    /**
+     * 主任医师
+     */
+    private String directorDoctor;
+
+    /**
+     * 主治医师
+     */
+    private String attendingDoctor;
+
+    /**
+     * 住院医师
+     */
+    private String behospitalDoctor;
+
+    /**
+     * 责任护士
+     */
+    private String responseNurse;
+
+    /**
+     * 进修医师
+     */
+    private String studyDoctor;
+
+    /**
+     * 实习医师
+     */
+    private String practiceDoctor;
+
+    /**
+     * 编码员
+     */
+    private String encodeMan;
+
+    /**
+     * 病案质量
+     */
+    private String homePageQuality;
+
+    /**
+     * 质控医师
+     */
+    private String qcDoctor;
+
+    /**
+     * 质控护士
+     */
+    private String qcNurse;
+
+    /**
+     * 质控日期
+     */
+    private Date qcDate;
+
+    /**
+     * 离院方式
+     */
+    private String leaveHospitalType;
+
+    /**
+     * 接收机构名称
+     */
+    private String acceptOrgCode;
+
+    /**
+     * 31天内再住院计划
+     */
+    private String againBehospitalPlan;
+
+    /**
+     * 再住院目的
+     */
+    private String againBehospitalGoal;
+
+    /**
+     * 颅脑损伤患者昏迷前天数
+     */
+    private String tbiBeforeDay;
+
+    /**
+     * 颅脑损伤患者昏迷前小时
+     */
+    private String tbiBeforeHour;
+
+    /**
+     * 颅脑损伤患者昏迷前分钟
+     */
+    private String tbiBeforeMinute;
+
+    /**
+     * 颅脑损伤患者昏迷后天数
+     */
+    private String tbiAfterDay;
+
+    /**
+     * 颅脑损伤患者昏迷后小时
+     */
+    private String tbiAfterHour;
+
+    /**
+     * 颅脑损伤患者昏迷后分钟
+     */
+    private String tbiAfterMinute;
+
+    /**
+     * 总费用
+     */
+    private String totalFee;
+
+    /**
+     * 自付金额
+     */
+    private String ownFee;
+
+    /**
+     * 一般医疗服务费
+     */
+    private String generalFee;
+
+    /**
+     * 一般治疗服务费
+     */
+    private String serviceFee;
+
+    /**
+     * 护理费
+     */
+    private String nurseFee;
+
+    /**
+     * 其他费用
+     */
+    private String otherFee;
+
+    /**
+     * 病理诊断费
+     */
+    private String pathologyFee;
+
+    /**
+     * 实验室诊断费
+     */
+    private String labFee;
+
+    /**
+     * 影像学诊断费
+     */
+    private String pacsFee;
+
+    /**
+     * 临床诊断项目费
+     */
+    private String clinicDiagnoseFee;
+
+    /**
+     * 非手术治疗项目费
+     */
+    private String notOperationFee;
+
+    /**
+     * 临床物理治疗费
+     */
+    private String clinicPhysicFee;
+
+    /**
+     * 手术治疗费
+     */
+    private String operationTreatFee;
+
+    /**
+     * 麻醉费
+     */
+    private String anaesthesiaFee;
+
+    /**
+     * 手术费
+     */
+    private String operationFee;
+
+    /**
+     * 康复类
+     */
+    private String healthTypeFee;
+
+    /**
+     * 中医治疗费
+     */
+    private String chnTreatFee;
+
+    /**
+     * 西药费
+     */
+    private String westernMedFee;
+
+    /**
+     * 抗菌药物费用
+     */
+    private String antibiosisFee;
+
+    /**
+     * 中成药费
+     */
+    private String chnMedFee;
+
+    /**
+     * 中草药费
+     */
+    private String chnHerbFee;
+
+    /**
+     * 血费
+     */
+    private String bloodFee;
+
+    /**
+     * 白蛋白类制品费
+     */
+    private String albumenFee;
+
+    /**
+     * 球蛋白类制品费
+     */
+    private String globulinFee;
+
+    /**
+     * 凝血因子类制品费
+     */
+    private String bloodFactorFee;
+
+    /**
+     * 细胞因子类制品费
+     */
+    private String cellFactorFee;
+
+    /**
+     * 检查用一次性医用材料费
+     */
+    private String checkMaterialFee;
+
+    /**
+     * 治疗用一次性医用材料费
+     */
+    private String treatMaterialFee;
+
+    /**
+     * 手术用一次性医用材料费
+     */
+    private String operationMaterialFee;
+
+    /**
+     * 其他类其他费
+     */
+    private String otherTypeFee;
+
+    /**
+     * 单病种管理
+     */
+    private String singleDiagManage;
+
+    /**
+     * 临床路径管理
+     */
+    private String clinicPathwayManage;
+
+    /**
+     * 门诊与住院
+     */
+    private String isOutpatientBehospital;
+
+    /**
+     * 入院与出院
+     */
+    private String isLeaveBehospital;
+
+    /**
+     * 术前与术后
+     */
+    private String isOperationBeforeAfter;
+
+    /**
+     * 临床与病理
+     */
+    private String isClinicPathology;
+
+    /**
+     * 放射与病理
+     */
+    private String isRadiatePathology;
+
+    /**
+     * 病人抢救次数
+     */
+    private String rescueNum;
+
+    /**
+     * 病人抢救成功次数
+     */
+    private String rescueSuccessNum;
+
+    /**
+     * 是否为自动出院
+     */
+    private String isAutoLeavehospital;
+
+    /**
+     * 转归情况
+     */
+    private String returnToType;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+}

+ 80 - 0
src/main/java/com/diagbot/entity/MedicalRecord.java

@@ -0,0 +1,80 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@TableName("med_medical_record")
+@Data
+public class MedicalRecord implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private String recId;
+
+    /**
+     * 医院ID
+     */
+    private Long hospitalId;
+
+    /**
+     * 病人住院ID
+     */
+    private String behospitalCode;
+
+    /**
+     * 组织机构代码
+     */
+    private String orgCode;
+
+    /**
+     * 病历类别编号
+     */
+    private String recTypeId;
+
+    /**
+     * 病历日期
+     */
+    private String recDate;
+
+    /**
+     * 病历标题
+     */
+    private String recTitle;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+}

+ 74 - 0
src/main/java/com/diagbot/entity/MedicalRecordContent.java

@@ -0,0 +1,74 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.sql.Blob;
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@TableName("med_medical_record_content")
+@Data
+public class MedicalRecordContent implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 内容ID
+     */
+    private String contentId;
+
+    /**
+     * 病历ID
+     */
+    private String recId;
+
+    /**
+     * 医院ID
+     */
+    private Long hospitalId;
+
+    /**
+     * 文书内容(blob)
+     */
+    private Blob contentBlob;
+
+    /**
+     * 病历文本(文本)
+     */
+    private String contentText;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.DoctorAdvice;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 病人医嘱 Mapper 接口
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface DoctorAdviceMapper extends BaseMapper<DoctorAdvice> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.HomeDiagnoseInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface HomeDiagnoseInfoMapper extends BaseMapper<HomeDiagnoseInfo> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.HomeOperationInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface HomeOperationInfoMapper extends BaseMapper<HomeOperationInfo> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.HomePage;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface HomePageMapper extends BaseMapper<HomePage> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.MedicalRecordContent;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface MedicalRecordContentMapper extends BaseMapper<MedicalRecordContent> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.MedicalRecord;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface MedicalRecordMapper extends BaseMapper<MedicalRecord> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.DoctorAdvice;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 病人医嘱 服务类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface DoctorAdviceService extends IService<DoctorAdvice> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.HomeDiagnoseInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface HomeDiagnoseInfoService extends IService<HomeDiagnoseInfo> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.HomeOperationInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface HomeOperationInfoService extends IService<HomeOperationInfo> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.HomePage;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface HomePageService extends IService<HomePage> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.MedicalRecordContent;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface MedicalRecordContentService extends IService<MedicalRecordContent> {
+
+}

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

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.MedicalRecord;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+public interface MedicalRecordService extends IService<MedicalRecord> {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.DoctorAdvice;
+import com.diagbot.mapper.DoctorAdviceMapper;
+import com.diagbot.service.DoctorAdviceService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 病人医嘱 服务实现类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@Service
+public class DoctorAdviceServiceImpl extends ServiceImpl<DoctorAdviceMapper, DoctorAdvice> implements DoctorAdviceService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.HomeDiagnoseInfo;
+import com.diagbot.mapper.HomeDiagnoseInfoMapper;
+import com.diagbot.service.HomeDiagnoseInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@Service
+public class HomeDiagnoseInfoServiceImpl extends ServiceImpl<HomeDiagnoseInfoMapper, HomeDiagnoseInfo> implements HomeDiagnoseInfoService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.HomeOperationInfo;
+import com.diagbot.mapper.HomeOperationInfoMapper;
+import com.diagbot.service.HomeOperationInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@Service
+public class HomeOperationInfoServiceImpl extends ServiceImpl<HomeOperationInfoMapper, HomeOperationInfo> implements HomeOperationInfoService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.HomePage;
+import com.diagbot.mapper.HomePageMapper;
+import com.diagbot.service.HomePageService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@Service
+public class HomePageServiceImpl extends ServiceImpl<HomePageMapper, HomePage> implements HomePageService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.MedicalRecordContent;
+import com.diagbot.mapper.MedicalRecordContentMapper;
+import com.diagbot.service.MedicalRecordContentService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@Service
+public class MedicalRecordContentServiceImpl extends ServiceImpl<MedicalRecordContentMapper, MedicalRecordContent> implements MedicalRecordContentService {
+
+}

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

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.MedicalRecord;
+import com.diagbot.mapper.MedicalRecordMapper;
+import com.diagbot.service.MedicalRecordService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author zhoutg
+ * @since 2020-04-13
+ */
+@Service
+public class MedicalRecordServiceImpl extends ServiceImpl<MedicalRecordMapper, MedicalRecord> implements MedicalRecordService {
+
+}

+ 38 - 0
src/main/resources/mapper/DoctorAdviceMapper.xml

@@ -0,0 +1,38 @@
+<?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.DoctorAdviceMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.DoctorAdvice">
+        <id column="doctor_advice_id" property="doctorAdviceId" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="behospital_code" property="behospitalCode" />
+        <result column="order_doctor_name" property="orderDoctorName" />
+        <result column="frequency" property="frequency" />
+        <result column="parent_type_id" property="parentTypeId" />
+        <result column="doctor_advice_type" property="doctorAdviceType" />
+        <result column="usage" property="usage" />
+        <result column="usage_unit" property="usageUnit" />
+        <result column="dose" property="dose" />
+        <result column="dose_unit" property="doseUnit" />
+        <result column="med_mode_type" property="medModeType" />
+        <result column="da_frequency" property="daFrequency" />
+        <result column="da_deal_type" property="daDealType" />
+        <result column="da_start_date" property="daStartDate" />
+        <result column="da_item_name" property="daItemName" />
+        <result column="da_status" property="daStatus" />
+        <result column="da_stop_date" property="daStopDate" />
+        <result column="da_group_no" property="daGroupNo" />
+        <result column="da_prescription_type" property="daPrescriptionType" />
+        <result column="da_med_type" property="daMedType" />
+        <result column="doctor_notice" property="doctorNotice" />
+        <result column="doctor_id" property="doctorId" />
+        <result column="doctor_name" property="doctorName" />
+        <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" />
+    </resultMap>
+
+</mapper>

+ 24 - 0
src/main/resources/mapper/HomeDiagnoseInfoMapper.xml

@@ -0,0 +1,24 @@
+<?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.HomeDiagnoseInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.HomeDiagnoseInfo">
+        <id column="home_page_id" property="homePageId" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="diagnose_order_no" property="diagnoseOrderNo" />
+        <result column="diagnose_type" property="diagnoseType" />
+        <result column="diagnose_type_short" property="diagnoseTypeShort" />
+        <result column="diagnose_name" property="diagnoseName" />
+        <result column="behospital_type" property="behospitalType" />
+        <result column="leave_hospital_type" property="leaveHospitalType" />
+        <result column="pathology_diagnose" property="pathologyDiagnose" />
+        <result column="icd_code" property="icdCode" />
+        <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" />
+    </resultMap>
+
+</mapper>

+ 28 - 0
src/main/resources/mapper/HomeOperationInfoMapper.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.HomeOperationInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.HomeOperationInfo">
+        <id column="home_page_id" property="homePageId" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="operation_order_no" property="operationOrderNo" />
+        <result column="operation_date" property="operationDate" />
+        <result column="operation_code" property="operationCode" />
+        <result column="operation_doctor_id" property="operationDoctorId" />
+        <result column="first_assistant_id" property="firstAssistantId" />
+        <result column="second_assistant_id" property="secondAssistantId" />
+        <result column="cut_level" property="cutLevel" />
+        <result column="healing_level" property="healingLevel" />
+        <result column="operation_name" property="operationName" />
+        <result column="operation_level" property="operationLevel" />
+        <result column="anaesthesia_name" property="anaesthesiaName" />
+        <result column="sham_operation_name" property="shamOperationName" />
+        <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" />
+    </resultMap>
+
+</mapper>

+ 140 - 0
src/main/resources/mapper/HomePageMapper.xml

@@ -0,0 +1,140 @@
+<?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.HomePageMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.HomePage">
+        <id column="home_page_id" property="homePageId" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="behospital_code" property="behospitalCode" />
+        <result column="hospital_code" property="hospitalCode" />
+        <result column="hospital_name" property="hospitalName" />
+        <result column="org_code" property="orgCode" />
+        <result column="pay_type" property="payType" />
+        <result column="health_card" property="healthCard" />
+        <result column="behospital_num" property="behospitalNum" />
+        <result column="file_code" property="fileCode" />
+        <result column="name" property="name" />
+        <result column="sex" property="sex" />
+        <result column="birthday" property="birthday" />
+        <result column="age" property="age" />
+        <result column="age_unit" property="ageUnit" />
+        <result column="nationality" property="nationality" />
+        <result column="newborn_month" property="newbornMonth" />
+        <result column="newborn_day" property="newbornDay" />
+        <result column="newborn_weight" property="newbornWeight" />
+        <result column="newborn_behospital_weight" property="newbornBehospitalWeight" />
+        <result column="born_address" property="bornAddress" />
+        <result column="born_place" property="bornPlace" />
+        <result column="nation" property="nation" />
+        <result column="identity_card_no" property="identityCardNo" />
+        <result column="job_type" property="jobType" />
+        <result column="marriage" property="marriage" />
+        <result column="cur_address" property="curAddress" />
+        <result column="cur_phone" property="curPhone" />
+        <result column="cur_post_code" property="curPostCode" />
+        <result column="residence_address" property="residenceAddress" />
+        <result column="residence_post_code" property="residencePostCode" />
+        <result column="work_address" property="workAddress" />
+        <result column="work_phone" property="workPhone" />
+        <result column="work_post_code" property="workPostCode" />
+        <result column="contact_name" property="contactName" />
+        <result column="contact_relation" property="contactRelation" />
+        <result column="contact_address" property="contactAddress" />
+        <result column="contact_phone" property="contactPhone" />
+        <result column="behospital_way" property="behospitalWay" />
+        <result column="behospital_date" property="behospitalDate" />
+        <result column="behospital_dept" property="behospitalDept" />
+        <result column="behospital_ward" property="behospitalWard" />
+        <result column="behospital_bed_id" property="behospitalBedId" />
+        <result column="behospital_bed_code" property="behospitalBedCode" />
+        <result column="change_dept" property="changeDept" />
+        <result column="leave_hospital_date" property="leaveHospitalDate" />
+        <result column="leave_hospital_dept" property="leaveHospitalDept" />
+        <result column="leave_hospital_ward" property="leaveHospitalWard" />
+        <result column="leave_hospital_bed_id" property="leaveHospitalBedId" />
+        <result column="leave_hospital_bed_code" property="leaveHospitalBedCode" />
+        <result column="behospital_day_num" property="behospitalDayNum" />
+        <result column="outpatient_emr_diagnose" property="outpatientEmrDiagnose" />
+        <result column="outpatient_emr_diagnose_code" property="outpatientEmrDiagnoseCode" />
+        <result column="poison_factor" property="poisonFactor" />
+        <result column="poison_factor_code" property="poisonFactorCode" />
+        <result column="pathology_diagnose" property="pathologyDiagnose" />
+        <result column="pathology_diagnose_code" property="pathologyDiagnoseCode" />
+        <result column="pathology_diagnose_id" property="pathologyDiagnoseId" />
+        <result column="is_med_allergy" property="isMedAllergy" />
+        <result column="med_allergy_name" property="medAllergyName" />
+        <result column="autopsy" property="autopsy" />
+        <result column="blood_type" property="bloodType" />
+        <result column="rh" property="rh" />
+        <result column="dept_director" property="deptDirector" />
+        <result column="director_doctor" property="directorDoctor" />
+        <result column="attending_doctor" property="attendingDoctor" />
+        <result column="behospital_doctor" property="behospitalDoctor" />
+        <result column="response_nurse" property="responseNurse" />
+        <result column="study_doctor" property="studyDoctor" />
+        <result column="practice_doctor" property="practiceDoctor" />
+        <result column="encode_man" property="encodeMan" />
+        <result column="home_page_quality" property="homePageQuality" />
+        <result column="qc_doctor" property="qcDoctor" />
+        <result column="qc_nurse" property="qcNurse" />
+        <result column="qc_date" property="qcDate" />
+        <result column="leave_hospital_type" property="leaveHospitalType" />
+        <result column="accept_org_code" property="acceptOrgCode" />
+        <result column="again_behospital_plan" property="againBehospitalPlan" />
+        <result column="again_behospital_goal" property="againBehospitalGoal" />
+        <result column="tbi_before_day" property="tbiBeforeDay" />
+        <result column="tbi_before_hour" property="tbiBeforeHour" />
+        <result column="tbi_before_minute" property="tbiBeforeMinute" />
+        <result column="tbi_after_day" property="tbiAfterDay" />
+        <result column="tbi_after_hour" property="tbiAfterHour" />
+        <result column="tbi_after_minute" property="tbiAfterMinute" />
+        <result column="total_fee" property="totalFee" />
+        <result column="own_fee" property="ownFee" />
+        <result column="general_fee" property="generalFee" />
+        <result column="service_fee" property="serviceFee" />
+        <result column="nurse_fee" property="nurseFee" />
+        <result column="other_fee" property="otherFee" />
+        <result column="pathology_fee" property="pathologyFee" />
+        <result column="lab_fee" property="labFee" />
+        <result column="pacs_fee" property="pacsFee" />
+        <result column="clinic_diagnose_fee" property="clinicDiagnoseFee" />
+        <result column="not_operation_fee" property="notOperationFee" />
+        <result column="clinic_physic_fee" property="clinicPhysicFee" />
+        <result column="operation_treat_fee" property="operationTreatFee" />
+        <result column="anaesthesia_fee" property="anaesthesiaFee" />
+        <result column="operation_fee" property="operationFee" />
+        <result column="health_type_fee" property="healthTypeFee" />
+        <result column="chn_treat_fee" property="chnTreatFee" />
+        <result column="western_med_fee" property="westernMedFee" />
+        <result column="antibiosis_fee" property="antibiosisFee" />
+        <result column="chn_med_fee" property="chnMedFee" />
+        <result column="chn_herb_fee" property="chnHerbFee" />
+        <result column="blood_fee" property="bloodFee" />
+        <result column="albumen_fee" property="albumenFee" />
+        <result column="globulin_fee" property="globulinFee" />
+        <result column="blood_factor_fee" property="bloodFactorFee" />
+        <result column="cell_factor_fee" property="cellFactorFee" />
+        <result column="check_material_fee" property="checkMaterialFee" />
+        <result column="treat_material_fee" property="treatMaterialFee" />
+        <result column="operation_material_fee" property="operationMaterialFee" />
+        <result column="other_type_fee" property="otherTypeFee" />
+        <result column="single_diag_manage" property="singleDiagManage" />
+        <result column="clinic_pathway_manage" property="clinicPathwayManage" />
+        <result column="is_outpatient_behospital" property="isOutpatientBehospital" />
+        <result column="is_leave_behospital" property="isLeaveBehospital" />
+        <result column="is_operation_before_after" property="isOperationBeforeAfter" />
+        <result column="is_clinic_pathology" property="isClinicPathology" />
+        <result column="is_radiate_pathology" property="isRadiatePathology" />
+        <result column="rescue_num" property="rescueNum" />
+        <result column="rescue_success_num" property="rescueSuccessNum" />
+        <result column="is_auto_leavehospital" property="isAutoLeavehospital" />
+        <result column="return_to_type" property="returnToType" />
+        <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" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
src/main/resources/mapper/MedicalRecordContentMapper.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.MedicalRecordContentMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.MedicalRecordContent">
+        <id column="content_id" property="contentId" />
+        <result column="rec_id" property="recId" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="content_blob" property="contentBlob" />
+        <result column="content_text" property="contentText" />
+        <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" />
+    </resultMap>
+
+</mapper>

+ 21 - 0
src/main/resources/mapper/MedicalRecordMapper.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.MedicalRecordMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.MedicalRecord">
+        <id column="rec_id" property="recId" />
+        <result column="hospital_id" property="hospitalId" />
+        <result column="behospital_code" property="behospitalCode" />
+        <result column="org_code" property="orgCode" />
+        <result column="rec_type_id" property="recTypeId" />
+        <result column="rec_date" property="recDate" />
+        <result column="rec_title" property="recTitle" />
+        <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" />
+    </resultMap>
+
+</mapper>

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

@@ -33,7 +33,7 @@ public class CodeGeneration {
         gc.setEnableCache(false);// XML 二级缓存
         gc.setBaseResultMap(true);// XML ResultMap
         gc.setBaseColumnList(false);// XML columList
-        gc.setAuthor("gaodm");// 作者
+        gc.setAuthor("zhoutg");// 作者
 
         // 自定义文件命名,注意 %s 会自动填充表实体属性!
         gc.setControllerName("%sController");
@@ -54,9 +54,9 @@ public class CodeGeneration {
 
         // 策略配置
         StrategyConfig strategy = new StrategyConfig();
-//        strategy.setTablePrefix(new String[] { "sys_" });// 此处可以修改为您的表前缀
+        strategy.setTablePrefix(new String[] { "med_" });// 此处可以修改为您的表前缀
         strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
-        strategy.setInclude(new String[] { "qc_type","qc_type_cases_entry","qc_type_doc","med_record_type" }); // 需要生成的表
+        strategy.setInclude(new String[] { "med_medical_record","med_medical_record_content","med_home_page","med_home_operation_info","med_home_diagnose_info", "med_doctor_advice"}); // 需要生成的表
 
         strategy.setSuperServiceClass(null);
         strategy.setSuperServiceImplClass(null);