Browse Source

Pull request #6256: REPORT-59814 组件埋点 groupingDetail 返回概率是空数据

Merge in DESIGN/design from ~TOMMY/design:feature/10.0 to feature/10.0

* commit 'bd4d66f66cb73fe01206c9916ae902672a027756':
  REPORT-59814 代码优化
  REPORT-59814 组件埋点 groupingDetail 返回概率是空数据
feature/10.0
Tommy 3 years ago
parent
commit
8e8fb6a8d2
  1. 17
      designer-base/src/main/java/com/fr/design/mainframe/share/collect/ComponentCollector.java

17
designer-base/src/main/java/com/fr/design/mainframe/share/collect/ComponentCollector.java

@ -288,12 +288,17 @@ public class ComponentCollector implements XMLable {
private JSONArray getGroupingDetail() {
JSONArray ja = JSONFactory.createJSON(JSON.ARRAY);
Group[] groups = DefaultShareGroupManager.getInstance().getAllGroup();
for(Group group : groups) {
JSONObject jo = JSONFactory.createJSON(JSON.OBJECT);
jo.put(GROUP_NAME, group.getGroupName());
jo.put(CONTAIN_AMOUNT, group.getAllBindInfoList().length);
ja.add(jo);
try {
DefaultShareGroupManager.getInstance().refresh();
Group[] groups = DefaultShareGroupManager.getInstance().getAllGroup();
for(Group group : groups) {
JSONObject jo = JSONFactory.createJSON(JSON.OBJECT);
jo.put(GROUP_NAME, group.getGroupName());
jo.put(CONTAIN_AMOUNT, group.getAllBindInfoList().length);
ja.add(jo);
}
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage());
}
return ja;
}

Loading…
Cancel
Save