|
@@ -135,7 +135,8 @@ public class AssignTaskService {
|
|
int count = 0, result = 0;
|
|
int count = 0, result = 0;
|
|
Long random = 0L;
|
|
Long random = 0L;
|
|
while (true) {
|
|
while (true) {
|
|
- random = RandomUtil.randomMap.get(workId).get(new Random().nextInt(RandomUtil.randomMap.get(workId).size()));
|
|
|
|
|
|
+// random = RandomUtil.randomMap.get(workId).get(new Random().nextInt(RandomUtil.randomMap.get(workId).size()));
|
|
|
|
+ random = RandomUtil.randomList.get(new Random().nextInt(RandomUtil.randomList.size()));
|
|
result = markTaskRepo.countByMarkerIdAndPaperIdAndWorkIdAndRandomSeqNew(markerId, paperId, workId, random);
|
|
result = markTaskRepo.countByMarkerIdAndPaperIdAndWorkIdAndRandomSeqNew(markerId, paperId, workId, random);
|
|
if (result == 0 && random != Long.parseLong(examNumber.substring(3, examNumber.length()))) {
|
|
if (result == 0 && random != Long.parseLong(examNumber.substring(3, examNumber.length()))) {
|
|
break;
|
|
break;
|