Browse Source

REPORT-59814 组件埋点 groupingDetail 返回概率是空数据

feature/10.0
kuangshuai 3 years ago
parent
commit
b3e55a4fdd
  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() { private JSONArray getGroupingDetail() {
JSONArray ja = JSONFactory.createJSON(JSON.ARRAY); JSONArray ja = JSONFactory.createJSON(JSON.ARRAY);
Group[] groups = DefaultShareGroupManager.getInstance().getAllGroup(); try {
for(Group group : groups) { DefaultShareGroupManager.getInstance().refresh();
JSONObject jo = JSONFactory.createJSON(JSON.OBJECT); Group[] groups = DefaultShareGroupManager.getInstance().getAllGroup();
jo.put(GROUP_NAME, group.getGroupName()); for(Group group : groups) {
jo.put(CONTAIN_AMOUNT, group.getAllBindInfoList().length); JSONObject jo = JSONFactory.createJSON(JSON.OBJECT);
ja.add(jo); jo.put(GROUP_NAME, group.getGroupName());
jo.put(CONTAIN_AMOUNT, group.getAllBindInfoList().length);
ja.add(jo);
}
} catch (Exception e) {
e.printStackTrace();
} }
return ja; return ja;
} }

Loading…
Cancel
Save