From c67a3c8173df62f90d784c4a2bd084167f20639f Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Thu, 20 Jun 2024 14:43:30 +0800 Subject: [PATCH] =?UTF-8?q?1:=20process=E3=80=81medical=5Frec=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20humanId=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 | 8 +++++++- .../src/main/java/com/supervision/model/MedicalRec.java | 3 +++ .../src/main/java/com/supervision/model/Process.java | 3 +++ .../src/main/resources/mapper/MedicalRecMapper.xml | 3 ++- .../src/main/resources/mapper/ProcessMapper.xml | 3 ++- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docker/v3.1.0/step1.sql b/docker/v3.1.0/step1.sql index 8fd7363e..43f866b6 100644 --- a/docker/v3.1.0/step1.sql +++ b/docker/v3.1.0/step1.sql @@ -113,4 +113,10 @@ create table vp_medical_rec_treatment_plan_drug update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间' ) comment '病历处置计划药物关联表' collate = utf8mb4_bin - row_format = DYNAMIC; \ No newline at end of file + row_format = DYNAMIC; + +alter table vp_medical_rec + add human_id varchar(64) null comment '数字人id' after patient_id; + +alter table vp_process + add human_id varchar(64) null comment '数字人id' after patient_id; \ 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 0eead954..06d59774 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,9 @@ public class MedicalRec extends Model implements Serializable { */ private String no; + @Schema(description = "数字人id") + private String humanId; + /** * 病历类型 0:普通型 1:学习型 3:考核型 */ diff --git a/virtual-patient-model/src/main/java/com/supervision/model/Process.java b/virtual-patient-model/src/main/java/com/supervision/model/Process.java index 6f665098..5cf6705e 100644 --- a/virtual-patient-model/src/main/java/com/supervision/model/Process.java +++ b/virtual-patient-model/src/main/java/com/supervision/model/Process.java @@ -30,6 +30,9 @@ public class Process implements Serializable { @Schema(description = "病人ID") private String patientId; + @Schema(description = "数字人id") + private String humanId; + @Schema(description = "病历ID") private String medicalRecId; diff --git a/virtual-patient-model/src/main/resources/mapper/MedicalRecMapper.xml b/virtual-patient-model/src/main/resources/mapper/MedicalRecMapper.xml index 71dbffd2..09a7660d 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 @@ + @@ -39,7 +40,7 @@ - id,no,medical_type,patient_id,patient_head_pic,digital_human_type, + id,no,medical_type, human_id, 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, diff --git a/virtual-patient-model/src/main/resources/mapper/ProcessMapper.xml b/virtual-patient-model/src/main/resources/mapper/ProcessMapper.xml index 2ffde739..a86a0b76 100644 --- a/virtual-patient-model/src/main/resources/mapper/ProcessMapper.xml +++ b/virtual-patient-model/src/main/resources/mapper/ProcessMapper.xml @@ -7,6 +7,7 @@ + @@ -24,7 +25,7 @@ - id,process_no,patient_id,user_id,status,process_type, + id,process_no,patient_id,human_id,user_id,status,process_type, finish_ask_time,graph_id,delete_flag, create_user_id,create_time,update_user_id,update_time