Commit fefd64a6 authored by 邢磊's avatar 邢磊

*)增加日志

parent 7ec2b164
......@@ -62,7 +62,11 @@ public class DPSubServiceImpl {
JSONArray tabs = result.getJSONArray("tabs");
JSONObject content = result.getJSONObject("content");
tabs.stream().forEach(x -> {
this.buildContent(content, (JSONObject) x, param);
JSONObject tab = (JSONObject) x;
long s = System.currentTimeMillis();
this.buildContent(content, tab, param);
long e = System.currentTimeMillis();
log.info("{}tab页处理结束,共耗时:{} 毫秒", tab.get("displayName"), (e - s));
});
return result;
}
......@@ -94,7 +98,10 @@ public class DPSubServiceImpl {
Object showHideRules = JsonValueUtils.getValueByKey(JSONObject.parseObject(formPage.getContent()), "formConfig", "formConfig.showHideRules");
// 处理显隐逻辑
long s = System.currentTimeMillis();
this.processShowHideRules(children, showHideRules, apiResult);
long e = System.currentTimeMillis();
log.info("{}tab页处理显隐逻辑,共耗时:{} 毫秒", tab.get("displayName"), (e - s));
List<Object> noHiddenChildren = children.stream().filter(x -> !"hidden".equals(JsonValueUtils.getValueByKey(x, "visualParams", "visualParams.behavior"))).collect(Collectors.toList());
// 设置一个图片附件分组
......@@ -118,6 +125,8 @@ public class DPSubServiceImpl {
this.buildSubFormData(map, i, yObj, apiResult);
}
}
long fe = System.currentTimeMillis();
log.info("{}tab页处理分类逻辑,共耗时:{} 毫秒", tab.get("displayName"), (fe - e));
if (!ValidationUtil.isEmpty(matinfo.getJSONArray("datas"))) {
matinfo.put("columns", map.get("columns"));
map.getJSONArray("subs").add(matinfo);
......
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