|
@@ -200,8 +200,8 @@ public class ExtractConfigServiceImpl implements ExtractConfigService {
|
|
Example<RandomPaper> queryExample = Example.of(query);
|
|
Example<RandomPaper> queryExample = Example.of(query);
|
|
boolean exists = randomPaperRepo.exists(queryExample);
|
|
boolean exists = randomPaperRepo.exists(queryExample);
|
|
if(!exists){
|
|
if(!exists){
|
|
- LOG.warn("随机抽题模板错误! courseId:{} randomPaperId:{}", course.getId(), extractConfig.getRandomPaperId());
|
|
|
|
- throw new StatusException("500", "请选择正确的随机抽题模板!");
|
|
|
|
|
|
+ LOG.warn("随机抽题模板选择错误,与当前课程不匹配! courseId:{} randomPaperId:{}", course.getId(), extractConfig.getRandomPaperId());
|
|
|
|
+ throw new StatusException("500", "随机抽题模板选择错误,与当前课程不匹配!");
|
|
}
|
|
}
|
|
|
|
|
|
// 新增,id为空
|
|
// 新增,id为空
|