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

Commit b9d1cf2d authored by anjiabin's avatar anjiabin

提交chime社交相关

parent 0e9edd43
...@@ -60,9 +60,9 @@ public class ChimePerformanceServiceImpl implements IChimePerformanceService { ...@@ -60,9 +60,9 @@ public class ChimePerformanceServiceImpl implements IChimePerformanceService {
criteria = criteria.and("sex").is(reqDto.getSex()); criteria = criteria.and("sex").is(reqDto.getSex());
} }
Pageable pageableCount = PageRequest.of(1, 1000); // get 5 profiles on a page Pageable pageableCount = PageRequest.of(0, 1000); // get 5 profiles on a page
Query queryCount = Query.query(criteria); Query queryCount = Query.query(criteria);
queryCount.fields().include("_id"); queryCount.fields().include("1");
queryCount.with(pageableCount); queryCount.with(pageableCount);
// 排序 // 排序
......
...@@ -219,12 +219,17 @@ public class TestDataUtils { ...@@ -219,12 +219,17 @@ public class TestDataUtils {
// reqDto.setPerformanceId("-1"); // reqDto.setPerformanceId("-1");
reqDto.setPerformanceId("-1"); reqDto.setPerformanceId("-1");
reqDto.setPageNum(1); reqDto.setPageNum(1);
reqDto.setPageSize(50); reqDto.setPageSize(20);
reqDto.setOrderItem(null); reqDto.setOrderItem(null);
reqDto.setOrderSc(null); reqDto.setOrderSc(null);
reqDto.setSex(""); reqDto.setSex("");
reqDto.setTags("tags1"); reqDto.setTags("tags12");
NewPageResult<ChimeUserInfoDto> pageInfo = chimePerformanceService.getUserListByCon(reqDto); NewPageResult<ChimeUserInfoDto> pageInfo = chimePerformanceService.getUserListByCon(reqDto);
log.info("总共获取总数pagecount:{}",pageInfo.getList().size());
pageInfo.getList().parallelStream().forEach(dto -> {
// System.out.println(dto.getUserId());
// System.out.println(JsonUtils.toJson(dto.getUserTags()));
});
long endTime = System.currentTimeMillis(); long endTime = System.currentTimeMillis();
log.info("耗时:{}ms",endTime-startTime); 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