|
@@ -387,7 +387,7 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
|
|
// 只有就绪状态并且附件生成才可提交
|
|
// 只有就绪状态并且附件生成才可提交
|
|
if (!ExamDetailStatusEnum.READY.equals(detail.getStatus())) {
|
|
if (!ExamDetailStatusEnum.READY.equals(detail.getStatus())) {
|
|
throw ExceptionResultEnum.ERROR.exception("考场就绪状态才可提交印刷");
|
|
throw ExceptionResultEnum.ERROR.exception("考场就绪状态才可提交印刷");
|
|
- } else if (detail.getAttachmentId() == null) {
|
|
|
|
|
|
+ } else if (detail.getAttachmentId() == null && detail.getCardAttachmentId() == null) {
|
|
throw ExceptionResultEnum.ERROR.exception("考场文件未生成");
|
|
throw ExceptionResultEnum.ERROR.exception("考场文件未生成");
|
|
}
|
|
}
|
|
|
|
|