Merge pull request #1800 from dataease/pr@dev@refactor_panel-view-edit

refactor: 视图去掉重名校验
This commit is contained in:
王嘉豪 2022-02-22 09:50:52 +08:00 committed by GitHub
commit 56dc4105e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -130,9 +130,5 @@ public class ChartGroupService {
if (ObjectUtils.isNotEmpty(chartGroup.getLevel())) {
criteria.andLevelEqualTo(chartGroup.getLevel());
}
List<ChartGroup> list = chartGroupMapper.selectByExample(chartGroupExample);
if (list.size() > 0) {
throw new RuntimeException(Translator.get("i18n_name_cant_repeat_same_group"));
}
}
}

View File

@ -1656,10 +1656,6 @@ public class ChartViewService {
if (StringUtils.isNotEmpty(chartView.getName())) {
criteria.andNameEqualTo(chartView.getName());
}
List<ChartViewWithBLOBs> list = chartViewMapper.selectByExampleWithBLOBs(chartViewExample);
if (list.size() > 0) {
throw new RuntimeException(Translator.get("i18n_name_cant_repeat_same_group"));
}
}
public ChartDetail getChartDetail(String id) {