|
@@ -3,6 +3,7 @@ package com.qmth.teachcloud.mark.service.impl;
|
|
|
import java.io.IOException;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -197,4 +198,13 @@ public class ScanAnswerCardServiceImpl extends ServiceImpl<ScanAnswerCardMapper,
|
|
|
return vo;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public AnswerCardVo cardGet(Long examId, Integer number) {
|
|
|
+ List<AnswerCardVo> list=baseMapper.cardGet(examId, number);
|
|
|
+ if (CollectionUtils.isEmpty(list)) {
|
|
|
+ throw new ParameterException("未找到卡格式信息");
|
|
|
+ }
|
|
|
+ return list.get(0);
|
|
|
+ }
|
|
|
+
|
|
|
}
|