修改查看报告时动态列表为空时报错
This commit is contained in:
parent
e3df710998
commit
d941d753a5
@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.llm.service.modelassesstaskmanual;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils;
|
||||
import cn.iocoder.yudao.module.llm.controller.admin.dataset.vo.DatasetAnswerRespVO;
|
||||
import cn.iocoder.yudao.module.llm.controller.admin.dataset.vo.DatasetQuestionPageReqVO;
|
||||
@ -120,6 +121,9 @@ public class ManualModelAnswerServiceImpl implements ManualModelAnswerService {
|
||||
.eq(ManualModelAnswerDO::getStatus,2)
|
||||
.isNotNull(ManualModelAnswerDO::getReqRespVos);
|
||||
List<ManualModelAnswerDO> manualModelAnswerDOS = manualModelAnswerMapper.selectList(wrapper);
|
||||
if (ObjectUtil.isAllEmpty(manualModelAnswerDOS)){
|
||||
return null;
|
||||
}
|
||||
List<LabelInformationVO> bean = BeanUtils.toBean(manualModelAnswerDOS.get(0).getReqRespVos(), LabelInformationVO.class);
|
||||
List<String> collect = bean.stream().map(LabelInformationVO::getLabel).collect(Collectors.toList());
|
||||
return collect;
|
||||
|
@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.llm.service.modelassesstaskmanualbackup;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.iocoder.yudao.module.llm.controller.admin.dataset.vo.DatasetAnswerRespVO;
|
||||
import cn.iocoder.yudao.module.llm.controller.admin.modelassesstaskauto.vo.ModelAssessTaskAutoPageReqVO;
|
||||
import cn.iocoder.yudao.module.llm.controller.admin.modelassesstaskauto.vo.ModelAssessTaskAutoRespVO;
|
||||
@ -421,6 +422,9 @@ public class ModelAssessTaskManualBackupServiceImpl implements ModelAssessTaskMa
|
||||
.eq(ManualModelAnswerBackupDO::getStatus,2)
|
||||
.isNotNull(ManualModelAnswerBackupDO::getReqRespVos);
|
||||
List<ManualModelAnswerBackupDO> manualModelAnswerDOS = manualModelAnswerBackupMapper.selectList(wrapper);
|
||||
if (ObjectUtil.isAllEmpty(manualModelAnswerDOS)){
|
||||
return null;
|
||||
}
|
||||
List<LabelInformationVO> bean = BeanUtils.toBean(manualModelAnswerDOS.get(0).getReqRespVos(), LabelInformationVO.class);
|
||||
List<String> collect = bean.stream().map(LabelInformationVO::getLabel).collect(Collectors.toList());
|
||||
return collect;
|
||||
|
Loading…
x
Reference in New Issue
Block a user