|
@@ -491,13 +491,13 @@ public class ExamCardServiceImpl extends ServiceImpl<ExamCardMapper, ExamCard> i
|
|
|
// 试卷类型不匹配跳过
|
|
|
continue;
|
|
|
}
|
|
|
- String jpgAttachmentInfo = this.getOne(new QueryWrapper<ExamCard>().lambda()
|
|
|
- .eq(ExamCard::getId, paperInfoVo.getCardId())).getJpgAttachment();
|
|
|
- if (StringUtils.isBlank(jpgAttachmentInfo)) {
|
|
|
+ ExamCard examCard = this.getOne(new QueryWrapper<ExamCard>().lambda()
|
|
|
+ .eq(ExamCard::getId, paperInfoVo.getCardId()));
|
|
|
+ if (examCard == null || StringUtils.isBlank(examCard.getJpgAttachment())) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
|
|
|
- List<ConvertJpgStorage> convertJpgStorageList = JSONObject.parseArray(jpgAttachmentInfo, ConvertJpgStorage.class);
|
|
|
+ List<ConvertJpgStorage> convertJpgStorageList = JSONObject.parseArray(examCard.getJpgAttachment(), ConvertJpgStorage.class);
|
|
|
|
|
|
cardJpgResultList.addAll(convertJpgStorageList.stream().flatMap(e -> {
|
|
|
BasicAttachment basicAttachment = basicAttachmentService.getById(e.getAttachmentId());
|