Browse Source

添加题库相关接口的缓存 ,添加详细日志,修复通知的bug

lideyin 5 years ago
parent
commit
9442418c28

+ 3 - 2
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/impl/NoticeServiceImpl.java

@@ -418,8 +418,9 @@ public class NoticeServiceImpl implements NoticeService {
         if (limitUserIdList != null && !limitUserIdList.isEmpty()) {
             maxUserId = Collections.max(limitUserIdList);
             nextId = maxUserId;
+            nextId++;
         }
-        nextId++;
+
         resultResp.setNextId(nextId);
         resultResp.setMaxId(maxUserId);
         resultResp.setIdList(limitUserIdList);
@@ -439,8 +440,8 @@ public class NoticeServiceImpl implements NoticeService {
         if (limitUserIdList != null && !limitUserIdList.isEmpty()) {
             maxUserId = Collections.max(limitUserIdList);
             nextId = maxUserId;
+            nextId++;
         }
-        nextId++;
         resultResp.setMaxId(maxUserId);
         resultResp.setNextId(nextId);
         resultResp.setIdList(limitUserIdList);