mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
修改查询耗时日志
This commit is contained in:
@@ -87,6 +87,7 @@ public class CasesRecommendPushRecordServiceImpl implements ICasesRecommendPushR
|
|||||||
if (CollectionUtil.isNotEmpty(casesRecommendLaunch.getDeptIds())) {
|
if (CollectionUtil.isNotEmpty(casesRecommendLaunch.getDeptIds())) {
|
||||||
long tt = System.currentTimeMillis();
|
long tt = System.currentTimeMillis();
|
||||||
for (String orgId : casesRecommendLaunch.getDeptIds()) {
|
for (String orgId : casesRecommendLaunch.getDeptIds()) {
|
||||||
|
long ts = System.currentTimeMillis();
|
||||||
List<OrgRootBean.ResultData> orgChildTree = thirdApi.getOrgChildTree(orgId, token);
|
List<OrgRootBean.ResultData> orgChildTree = thirdApi.getOrgChildTree(orgId, token);
|
||||||
log.info("查询组织数据耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
|
log.info("查询组织数据耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
|
||||||
if (CollectionUtil.isNotEmpty(orgChildTree)) {
|
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);
|
log.info("组织查询耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user