|
@@ -517,7 +517,7 @@ public class ExamCardServiceImpl extends ServiceImpl<ExamCardMapper, ExamCard> i
|
|
if (examCard == null) {
|
|
if (examCard == null) {
|
|
throw ExceptionResultEnum.ERROR.exception("题卡不存在");
|
|
throw ExceptionResultEnum.ERROR.exception("题卡不存在");
|
|
}
|
|
}
|
|
- if (!courseCode.equals(examCard.getCourseCode())) {
|
|
|
|
|
|
+ if (CardTypeEnum.CUSTOM.equals(examCard.getType()) && !courseCode.equals(examCard.getCourseCode())) {
|
|
throw ExceptionResultEnum.ERROR.exception("复制的题卡不属于当前课程,无法复制");
|
|
throw ExceptionResultEnum.ERROR.exception("复制的题卡不属于当前课程,无法复制");
|
|
}
|
|
}
|
|
|
|
|