提交 9f29056a authored 作者: 李炎's avatar 李炎

logstest

上级 cf92dc40
......@@ -76,7 +76,7 @@ public class KingdeeLogUtil {
//获取该线程的存入的变量,在接口开头添加追加的参数
Map map = ThreadLocalConfig.get();
Kingdeelog kingdeelog = new Kingdeelog();
if (!ObjectUtils.isEmpty(map)) {
if (!ObjectUtils.isEmpty(map) && map.containsKey("Costime")) {
System.out.println("<==========Log2Local" + map);
Object o = map.get("Costime");
String s = o.toString();
......
......@@ -30,12 +30,11 @@ public class KingdeeApiClient {
}
public <T> T execute(String servicename, Object[] parameters, Class<T> returnType) throws Exception {
execute(servicename, parameters);
long startTime = System.currentTimeMillis();
T execute = api.execute(servicename, parameters, returnType);
long duration = System.currentTimeMillis() - startTime;
log.info("<======sdk请求耗时:" + duration + "毫秒");
execute(servicename, parameters);
return execute;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论