Browse Source

美术阅卷12月新增需求-BUG修复

wangliang 5 years ago
parent
commit
aa27df52d0

+ 3 - 1
stmms-ms-commons/src/main/java/cn/com/qmth/stmms/ms/commons/utils/RandomUtil.java

@@ -42,6 +42,8 @@ public class RandomUtil {
         if (list.size() == 0 || againRandom) {
             long start = System.currentTimeMillis();
             if (againRandom) {
+                randomMap.clear();
+                list = new ArrayList();
                 randomNum++;
             }
             Long randomReq = workId % 10;
@@ -50,7 +52,7 @@ public class RandomUtil {
                 randomReq = randomReq % 10;
             }
             randomReq = randomReq == 0L ? 1L : randomReq;
-            LOGGER.info("workId:{},开始生成随机数:{}", workId, start);
+            LOGGER.info("workId:{},开始生成随机数:{},randomReq:{}", workId, start, randomReq);
             Long finalRandomReq = randomReq;
             List finalList = list;