xiaof 3 年之前
父节点
当前提交
628e4fc157

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

@@ -120,7 +120,7 @@ public class DataSyncServiceImpl implements DataSyncService {
             throw ExceptionResultEnum.ERROR.exception("请选择需要合并的印刷任务");
         }
 
-        if(Objects.isNull(syncDataParam.getThirdRelateId()) || Objects.isNull(syncDataParam.getThirdRelateName())){
+        if(Objects.isNull(syncDataParam.getThirdRelateId()) && Objects.isNull(syncDataParam.getThirdRelateName())){
             throw ExceptionResultEnum.ERROR.exception("考试ID、考试名称至少填一个");
         }
 

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

@@ -324,7 +324,6 @@ public class TaskLogicServiceImpl implements TaskLogicService {
                             t.setPaperType(stuPaperType);
                             i++;
                         }
-                        examStudentService.saveOrUpdateBatch(examStudentList);
                         // 试卷
                         list[2].addAll(paperPdfTempList);
                     }
@@ -357,6 +356,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
                             examDetailCourse.setAttachmentId(jsonObject.toJSONString());
                         }
                     }
+                    examStudentService.saveOrUpdateBatch(examStudentList);
                 }
                 examDetailCourse.setAttachmentId(jsonObject.toJSONString());
                 examTaskDetailService.saveOrUpdateBatch(examTaskDetailList);