记得上下班打卡 | git大法好,push需谨慎

Commit 8c36ff30 authored by anjiabin's avatar anjiabin

redis多数据源

parent 7dfbe583
......@@ -25,6 +25,7 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
......@@ -105,7 +106,7 @@ public class ChimePerformanceServiceImpl implements IChimePerformanceService {
startTime = System.currentTimeMillis();
List<ChimeUserInfoVo> chimeUserInfoVoList = mongoTemplate.find(query, ChimeUserInfoVo.class, ChimeUserInfoVo.class.getSimpleName());
//打乱排序
// Collections.shuffle(chimeUserInfoVoList);
Collections.shuffle(chimeUserInfoVoList);
endTime = System.currentTimeMillis();
log.info("查询标签数据 分页数据 耗时:{}ms",endTime-startTime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment