diff --git a/backend/src/main/java/io/dataease/service/chart/ChartGroupService.java b/backend/src/main/java/io/dataease/service/chart/ChartGroupService.java index 51ae28e3ed..2ab6043ee2 100644 --- a/backend/src/main/java/io/dataease/service/chart/ChartGroupService.java +++ b/backend/src/main/java/io/dataease/service/chart/ChartGroupService.java @@ -130,9 +130,5 @@ public class ChartGroupService { if (ObjectUtils.isNotEmpty(chartGroup.getLevel())) { criteria.andLevelEqualTo(chartGroup.getLevel()); } - List list = chartGroupMapper.selectByExample(chartGroupExample); - if (list.size() > 0) { - throw new RuntimeException(Translator.get("i18n_name_cant_repeat_same_group")); - } } } diff --git a/backend/src/main/java/io/dataease/service/chart/ChartViewService.java b/backend/src/main/java/io/dataease/service/chart/ChartViewService.java index 2eb4a6a591..78a32e13af 100644 --- a/backend/src/main/java/io/dataease/service/chart/ChartViewService.java +++ b/backend/src/main/java/io/dataease/service/chart/ChartViewService.java @@ -1656,10 +1656,6 @@ public class ChartViewService { if (StringUtils.isNotEmpty(chartView.getName())) { criteria.andNameEqualTo(chartView.getName()); } - List list = chartViewMapper.selectByExampleWithBLOBs(chartViewExample); - if (list.size() > 0) { - throw new RuntimeException(Translator.get("i18n_name_cant_repeat_same_group")); - } } public ChartDetail getChartDetail(String id) {