提交耗时统计

This commit is contained in:
Guava
2023-07-05 10:35:06 +08:00
parent b98b32d67c
commit 5ff549d62f

View File

@@ -103,13 +103,13 @@ public class CasesRecommendPushRecordServiceImpl implements ICasesRecommendPushR
allAudienceList.forEach(auditList -> userIds.add(String.valueOf(auditList.getUserId())));
}
}
log.info("耗时 受众查询 {}", (System.currentTimeMillis()) / 1000);
log.info("耗时受众查询 {}", (System.currentTimeMillis() - t2) / 1000);
}
if (CollectionUtil.isEmpty(userIds)) {
throw new RuntimeException("推荐人不能为空");
}
log.info("查询用户消耗时长为 {}秒", (System.currentTimeMillis() - t1) / 1000);
log.info("查询用户总共消耗时长为 {}秒", (System.currentTimeMillis() - t1) / 1000);
CasesRecommend casesRecommend = new CasesRecommend();
casesRecommend.setRecommendId(currentUser.getAccountId());