|
@@ -114,14 +114,15 @@ public class ReportConfigService implements BaseService {
|
|
|
public MapResponse groupbyColumns(List<String> tableNameList) {
|
|
|
MapResponse response = new MapResponse();
|
|
|
List<String> list = reportConfigRepository.groupbyColumns(tableNameList);
|
|
|
- List<String> intersection = new ArrayList<>();
|
|
|
+ List<String> intersection = null;
|
|
|
for (String groupbyColumns : list) {
|
|
|
List<String> group = Arrays.asList(groupbyColumns.split(","));
|
|
|
if (group.size() == 0) {
|
|
|
intersection.clear();
|
|
|
break;
|
|
|
}
|
|
|
- if (intersection.size() == 0) {
|
|
|
+ if (intersection == null) {
|
|
|
+ intersection = new ArrayList<>();
|
|
|
intersection.addAll(group);
|
|
|
continue;
|
|
|
}
|