manage: 代码调整

dev_2.1.0
xueqingkun 1 year ago
parent d209b856fd
commit 8e6ad61db7

@ -249,8 +249,8 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
Set<String> answerResourceIds = medicalRecQaList.stream().map(MedicalRecQaVO::getAnswerResourceId).filter(StrUtil::isNotEmpty).collect(Collectors.toSet()); Set<String> answerResourceIds = medicalRecQaList.stream().map(MedicalRecQaVO::getAnswerResourceId).filter(StrUtil::isNotEmpty).collect(Collectors.toSet());
Map<String, String> videoInfoMaps = new HashMap<>(); Map<String, String> videoInfoMaps = new HashMap<>();
if (CollUtil.isNotEmpty(answerResourceIds)){ if (CollUtil.isNotEmpty(answerResourceIds)){
Map<String, String> videoInfoMapsTmp = materialLibraryService.listByIds(answerResourceIds).stream() Map<String, String> videoInfoMapsTmp = materialLibraryService.lambdaQuery().in(MaterialLibrary::getFileResourceId, answerResourceIds)
.collect(Collectors.toMap(MaterialLibrary::getId, MaterialLibrary::getMaterialName)); .list().stream().collect(Collectors.toMap(MaterialLibrary::getId, MaterialLibrary::getMaterialName));
videoInfoMaps.putAll(videoInfoMapsTmp); videoInfoMaps.putAll(videoInfoMapsTmp);
} }

@ -40,7 +40,7 @@ public class MedicalRec extends Model<MedicalRec> implements Serializable {
/** /**
* 0:线 1:线 * 0:线 1:线
*/ */
private String digitalHumanType; private int digitalHumanType;
/** /**
* *

@ -9,7 +9,7 @@
<result property="no" column="no" jdbcType="VARCHAR"/> <result property="no" column="no" jdbcType="VARCHAR"/>
<result property="patientId" column="patient_id" jdbcType="VARCHAR"/> <result property="patientId" column="patient_id" jdbcType="VARCHAR"/>
<result property="patientHeadPic" column="patient_head_pic" jdbcType="VARCHAR"/> <result property="patientHeadPic" column="patient_head_pic" jdbcType="VARCHAR"/>
<result property="digitalHumanType" column="digital_human_type" jdbcType="VARCHAR"/> <result property="digitalHumanType" column="digital_human_type" jdbcType="INTEGER"/>
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/> <result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
<result property="patientGender" column="patient_gender" jdbcType="VARCHAR"/> <result property="patientGender" column="patient_gender" jdbcType="VARCHAR"/>
<result property="patientAge" column="patient_age" jdbcType="INTEGER"/> <result property="patientAge" column="patient_age" jdbcType="INTEGER"/>

Loading…
Cancel
Save