From f1ff8582d07398a7d7efbcf3afaa86a5e4efc275 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Thu, 20 Jun 2024 15:54:53 +0800 Subject: [PATCH] =?UTF-8?q?1:=20=E6=B7=BB=E5=8A=A0human=E7=9B=B8=E5=85=B3j?= =?UTF-8?q?ava=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/supervision/mapper/HumanMapper.java | 18 +++++ .../java/com/supervision/model/Human.java | 71 +++++++++++++++++++ .../com/supervision/service/HumanService.java | 13 ++++ .../service/impl/HumanServiceImpl.java | 22 ++++++ .../src/main/resources/mapper/HumanMapper.xml | 26 +++++++ .../service/impl/AskProcessServiceImpl.java | 1 + 6 files changed, 151 insertions(+) create mode 100644 virtual-patient-model/src/main/java/com/supervision/mapper/HumanMapper.java create mode 100644 virtual-patient-model/src/main/java/com/supervision/model/Human.java create mode 100644 virtual-patient-model/src/main/java/com/supervision/service/HumanService.java create mode 100644 virtual-patient-model/src/main/java/com/supervision/service/impl/HumanServiceImpl.java create mode 100644 virtual-patient-model/src/main/resources/mapper/HumanMapper.xml diff --git a/virtual-patient-model/src/main/java/com/supervision/mapper/HumanMapper.java b/virtual-patient-model/src/main/java/com/supervision/mapper/HumanMapper.java new file mode 100644 index 00000000..a50ccc22 --- /dev/null +++ b/virtual-patient-model/src/main/java/com/supervision/mapper/HumanMapper.java @@ -0,0 +1,18 @@ +package com.supervision.mapper; + +import com.supervision.model.Human; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** +* @author Administrator +* @description 针对表【vp_human(数字人表)】的数据库操作Mapper +* @createDate 2024-06-20 15:51:59 +* @Entity com.supervision.model.Human +*/ +public interface HumanMapper extends BaseMapper { + +} + + + + diff --git a/virtual-patient-model/src/main/java/com/supervision/model/Human.java b/virtual-patient-model/src/main/java/com/supervision/model/Human.java new file mode 100644 index 00000000..dca79a28 --- /dev/null +++ b/virtual-patient-model/src/main/java/com/supervision/model/Human.java @@ -0,0 +1,71 @@ +package com.supervision.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + +/** + * 数字人表 + * @TableName vp_human + */ +@TableName(value ="vp_human") +@Data +public class Human implements Serializable { + /** + * 主键 + */ + @TableId + private String id; + + /** + * 静态图片ID + */ + private String imageFileId; + + /** + * 静态图片ID + */ + private String silentVideoFileId; + + /** + * 提交生成的UID标识 + */ + private String silentTaskUid; + + /** + * 动态视频ID + */ + private String dynamicVideoFileId; + + /** + * 动态视频生成UID标识 + */ + private String dynamicTaskUid; + + /** + * 创建人ID + */ + private String createUserId; + + /** + * 创建时间 + */ + private Date createTime; + + /** + * 更新人ID + */ + private String updateUserId; + + /** + * 更新时间 + */ + private Date updateTime; + + @TableField(exist = false) + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/virtual-patient-model/src/main/java/com/supervision/service/HumanService.java b/virtual-patient-model/src/main/java/com/supervision/service/HumanService.java new file mode 100644 index 00000000..ac5cd7db --- /dev/null +++ b/virtual-patient-model/src/main/java/com/supervision/service/HumanService.java @@ -0,0 +1,13 @@ +package com.supervision.service; + +import com.supervision.model.Human; +import com.baomidou.mybatisplus.extension.service.IService; + +/** +* @author Administrator +* @description 针对表【vp_human(数字人表)】的数据库操作Service +* @createDate 2024-06-20 15:51:59 +*/ +public interface HumanService extends IService { + +} diff --git a/virtual-patient-model/src/main/java/com/supervision/service/impl/HumanServiceImpl.java b/virtual-patient-model/src/main/java/com/supervision/service/impl/HumanServiceImpl.java new file mode 100644 index 00000000..271d7502 --- /dev/null +++ b/virtual-patient-model/src/main/java/com/supervision/service/impl/HumanServiceImpl.java @@ -0,0 +1,22 @@ +package com.supervision.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.supervision.model.Human; +import com.supervision.service.HumanService; +import com.supervision.mapper.HumanMapper; +import org.springframework.stereotype.Service; + +/** +* @author Administrator +* @description 针对表【vp_human(数字人表)】的数据库操作Service实现 +* @createDate 2024-06-20 15:51:59 +*/ +@Service +public class HumanServiceImpl extends ServiceImpl + implements HumanService{ + +} + + + + diff --git a/virtual-patient-model/src/main/resources/mapper/HumanMapper.xml b/virtual-patient-model/src/main/resources/mapper/HumanMapper.xml new file mode 100644 index 00000000..94ce1f39 --- /dev/null +++ b/virtual-patient-model/src/main/resources/mapper/HumanMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + id,image_file_id,silent_video_file_id, + silent_task_uid,dynamic_video_file_id,dynamic_task_uid, + create_user_id,create_time,update_user_id, + update_time + + diff --git a/virtual-patient-web/src/main/java/com/supervision/service/impl/AskProcessServiceImpl.java b/virtual-patient-web/src/main/java/com/supervision/service/impl/AskProcessServiceImpl.java index 7a90c75e..4d96f001 100644 --- a/virtual-patient-web/src/main/java/com/supervision/service/impl/AskProcessServiceImpl.java +++ b/virtual-patient-web/src/main/java/com/supervision/service/impl/AskProcessServiceImpl.java @@ -32,6 +32,7 @@ public class AskProcessServiceImpl implements AskProcessService { process.setPatientId(patientId); process.setMedicalRecId(medicalId); process.setDiseaseId(medicalRec.getDiseaseId()); + process.setHumanId(medicalRec.getHumanId());// 设置病人的形象 process.setUserId(user.getId()); process.setStatus(0); process.setCreateUserId(user.getId());