diff --git a/docker/v3.1.0/step1.sql b/docker/v3.1.0/step1.sql index 0d246631..6c1e4471 100644 --- a/docker/v3.1.0/step1.sql +++ b/docker/v3.1.0/step1.sql @@ -26,4 +26,7 @@ create table vp_medical_extend_item update_user_id varchar(64) null comment '更新人', update_time datetime default CURRENT_TIMESTAMP null comment '更新时间' ) - comment '病历扩展项' charset = utf8 row_format = DYNAMIC; \ No newline at end of file + comment '病历扩展项' charset = utf8 row_format = DYNAMIC; + +alter table vp_medical_rec + add medical_type integer null comment '病历类型 0:普通型 1:学习型 3:考核型' after no; \ No newline at end of file diff --git a/virtual-patient-model/src/main/java/com/supervision/model/MedicalRec.java b/virtual-patient-model/src/main/java/com/supervision/model/MedicalRec.java index 7bc4b69e..20d20779 100644 --- a/virtual-patient-model/src/main/java/com/supervision/model/MedicalRec.java +++ b/virtual-patient-model/src/main/java/com/supervision/model/MedicalRec.java @@ -30,6 +30,11 @@ public class MedicalRec extends Model implements Serializable { */ private String no; + /** + * 病历类型 0:普通型 1:学习型 3:考核型 + */ + private Integer medicalType; + /** * 病人头像 */ diff --git a/virtual-patient-model/src/main/resources/mapper/MedicalRecMapper.xml b/virtual-patient-model/src/main/resources/mapper/MedicalRecMapper.xml index 86a35545..5203f4c2 100644 --- a/virtual-patient-model/src/main/resources/mapper/MedicalRecMapper.xml +++ b/virtual-patient-model/src/main/resources/mapper/MedicalRecMapper.xml @@ -7,6 +7,7 @@ + @@ -37,7 +38,7 @@ - id,no,patient_id,patient_head_pic,digital_human_type, + id,no,medical_type,patient_id,patient_head_pic,digital_human_type, patient_name,patient_gender,patient_age, patient_marriage,patient_profession,patient_phone, native_place,patient_nation,patient_postcode,