Parcourir la source

成绩回传改为异步操作

xiaofei il y a 2 ans
Parent
commit
df2cfdc7cd
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/main/java/com/qmth/eds/service/DataSyncService.java

+ 2 - 1
src/main/java/com/qmth/eds/service/DataSyncService.java

@@ -2,6 +2,7 @@ package com.qmth.eds.service;
 
 import com.qmth.eds.common.entity.ExamScheduleTask;
 import com.qmth.eds.common.entity.TBSyncTask;
+import org.springframework.scheduling.annotation.Async;
 
 /**
  * 同步数据到云阅卷 服务类
@@ -21,8 +22,8 @@ public interface DataSyncService {
      * 同步云阅卷考生成绩
      *
      * @param tbSyncTask tbSyncTask
-     * @param collegeId
      * @param examId     云阅卷考试ID
      */
+    @Async
     void syncCloudMarkingStudentScoreData(TBSyncTask tbSyncTask, Integer examId);
 }