ソースを参照

Merge branch 'master' of http://git.qmth.com.cn/ExamCloud-3/examcloud-task.git

WANG 5 年 前
コミット
a4e75771c5

+ 5 - 3
examcloud-task-service/src/main/java/cn/com/qmth/examcloud/task/service/job/DisposePublishingNoticeTask.java

@@ -40,10 +40,11 @@ public class DisposePublishingNoticeTask extends AbstractTask {
         if (progressList == null || progressList.isEmpty()) {
             return;
         }
-        Long startUserId = 0L;
-        int loopTimes = 0;
+
+
         for (NoticeRulePublishProgressBean progress : progressList) {
-            loopTimes++;
+            Long startUserId = 0L;
+            int loopTimes = 0;
             Long lastMaxUserId = getLastMaxUserId(progress.getNoticeReceiverRuleType(), progress);
             if (lastMaxUserId != null) {
                 startUserId = lastMaxUserId + 1;
@@ -65,6 +66,7 @@ public class DisposePublishingNoticeTask extends AbstractTask {
                         updateNoticeStatus(progress.getNoticeId(), NoticeStatus.PUBLISHING);
                     }
                 }
+                loopTimes++;
             }
         }