Browse Source

3.3.0 fix

xiaofei 1 year ago
parent
commit
287c69433c

+ 1 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ClientServiceImpl.java

@@ -758,7 +758,7 @@ public class ClientServiceImpl implements ClientService {
                 for (Map studentMap : studentList) {
                     ClientPrintDataDto printDataDto = newClientPrintDataDto(studentMap);
                     if (!studentMap.containsKey("attachmentId") || studentMap.get("attachmentId") == null) {
-                        throw ExceptionResultEnum.ERROR.exception("学号[" + studentMap.get("studentCode") + "]考生未生成试卷");
+                        continue;
                     }
                     Map<String, String> urlMap = teachcloudCommonService.filePreviewByAttachmentId(Long.valueOf(studentMap.get("attachmentId").toString()), false);
                     printDataDto.setMd5(urlMap.get("md5"));