|
@@ -48,6 +48,7 @@ import cn.com.qmth.examcloud.core.questions.dao.entity.dto.PaperDetailUnitStruct
|
|
|
import cn.com.qmth.examcloud.core.questions.service.PaperStructService;
|
|
|
import cn.com.qmth.examcloud.core.questions.service.RandomPaperService;
|
|
|
import cn.com.qmth.examcloud.core.questions.service.bean.randompaper.PaperDetailUnitDto;
|
|
|
+import cn.com.qmth.examcloud.core.questions.service.bean.randompaper.PaperQuestionViewQuery;
|
|
|
import cn.com.qmth.examcloud.core.questions.service.bean.randompaper.QuestionDto;
|
|
|
import cn.com.qmth.examcloud.core.questions.service.bean.randompaper.RandomPaperDomain;
|
|
|
import cn.com.qmth.examcloud.core.questions.service.bean.randompaper.RandomPaperListVo;
|
|
@@ -245,7 +246,15 @@ public class RandomPaperServiceImpl implements RandomPaperService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public StructInfo getPaperQuestionViewInfo(String structId, List<String> paperIds) {
|
|
|
+ public StructInfo getPaperQuestionViewInfo(PaperQuestionViewQuery query) {
|
|
|
+ String structId=query.getStructId();
|
|
|
+ List<String> paperIds=query.getPaperIds();
|
|
|
+ if (StringUtils.isBlank(structId)) {
|
|
|
+ throw new StatusException("structId不能为空");
|
|
|
+ }
|
|
|
+ if (CollectionUtils.isEmpty(paperIds)) {
|
|
|
+ throw new StatusException("paperIds不能为空");
|
|
|
+ }
|
|
|
StructInfo ret = getPaperQuestionInfo(structId, paperIds);
|
|
|
clearQuestionIds(ret);
|
|
|
return ret;
|