修改查询耗时日志

This commit is contained in:
Guava
2023-07-05 09:45:59 +08:00
parent 298b2851f1
commit 93da365526

View File

@@ -87,6 +87,7 @@ public class CasesRecommendPushRecordServiceImpl implements ICasesRecommendPushR
if (CollectionUtil.isNotEmpty(casesRecommendLaunch.getDeptIds())) {
long tt = System.currentTimeMillis();
for (String orgId : casesRecommendLaunch.getDeptIds()) {
long ts = System.currentTimeMillis();
List<OrgRootBean.ResultData> orgChildTree = thirdApi.getOrgChildTree(orgId, token);
log.info("查询组织数据耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
if (CollectionUtil.isNotEmpty(orgChildTree)) {
@@ -100,7 +101,7 @@ public class CasesRecommendPushRecordServiceImpl implements ICasesRecommendPushR
}
}
}
log.info("{} 机构查询耗时 {}秒", orgId, (System.currentTimeMillis()) / 1000);
log.info("{} 机构查询耗时 {}秒", orgId, (System.currentTimeMillis() - ts) / 1000);
}
log.info("组织查询耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
}