From 8823a6e035fa078e2e0ec521a4f7b15511cd5ee9 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 22 Feb 2022 09:49:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A7=86=E5=9B=BE=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E9=87=8D=E5=90=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/service/chart/ChartGroupService.java | 4 ---- .../main/java/io/dataease/service/chart/ChartViewService.java | 4 ---- 2 files changed, 8 deletions(-) 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) {