From 3913da93bd9db84a5f63bc714d1adab570599513 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Tue, 18 Jun 2024 11:20:04 +0800 Subject: [PATCH] =?UTF-8?q?1:=20=E7=97=85=E5=8E=86=E6=B7=BB=E5=8A=A0medica?= =?UTF-8?q?l=5Ftype=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/v3.1.0/step1.sql | 5 ++++- .../src/main/java/com/supervision/model/MedicalRec.java | 5 +++++ .../src/main/resources/mapper/MedicalRecMapper.xml | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) 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,