Commit b8fa631c authored by 陈立彬's avatar 陈立彬

对练详情QA列表返回分类名称

parent 5bf7f9af
......@@ -462,6 +462,14 @@ public class AppExamineService {
if(CollectionUtil.isNotEmpty(xrefList)) {
List<Integer> qaIdList = xrefList.stream().map(ExamineQaXrefResponseModel::getQaId).collect(Collectors.toList());
List<ExamineQaResponseModel> examineQaList = examineService.examineQaList(qaIdList);
if(CollectionUtil.isNotEmpty(examineQaList)) {
examineQaList.forEach(v -> {
ExamineSceneCategoryDto categoryDto = sceneCategoryDetail(v.getCategoryId());
if(Objects.nonNull(categoryDto)) {
v.setCategoryName(categoryDto.getName());
}
});
}
model.setQaList(examineQaList);
}
return BeanUtil.copyProperties(model, ExamineDto.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment