|
|
|
@ -206,6 +206,9 @@ public class RegenerateQuestionDomainServiceImpl implements RegenerateQuestionDo |
|
|
|
.eq(RegenerateQuestionTaskEntity::getPaperQuestionId, paperQuestionId) |
|
|
|
.eq(RegenerateQuestionTaskEntity::getStatus, 0)); |
|
|
|
if (existingTask != null) { |
|
|
|
// 已有任务正在生题中,先把 questionId 置空,避免前端看到旧题
|
|
|
|
paperQuestion.setQuestionId(null); |
|
|
|
classicPaperQuestionBaseService.updateById(paperQuestion); |
|
|
|
throw new BusinessErrorException("该题目正在重新生题中,请稍后再试"); |
|
|
|
} |
|
|
|
|
|
|
|
|