|
@@ -1028,17 +1028,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
}
|
|
|
MakeMethodEnum makeMethodEnum = examCard.getMakeMethod();
|
|
|
if (MakeMethodEnum.SELECT.equals(makeMethodEnum)) {
|
|
|
-// Long templateId = examCard.getTemplateId();
|
|
|
- // todo 修改20220222
|
|
|
- Long templateId = null;
|
|
|
- if (templateId == null || templateId == 0) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("找不到题卡对应的模板");
|
|
|
- }
|
|
|
- BasicTemplate basicTemplate = basicTemplateService.getById(templateId);
|
|
|
- if (Objects.isNull(basicTemplate)) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("找不到模板信息");
|
|
|
- }
|
|
|
- Long attachmentId = basicTemplate.getAttachmentId();
|
|
|
+ Long attachmentId = examCard.getAttachmentId();
|
|
|
if (attachmentId == null || attachmentId == 0) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("找不到模板对应的附件");
|
|
|
}
|