forked from github/dataease
Merge pull request #1800 from dataease/pr@dev@refactor_panel-view-edit
refactor: 视图去掉重名校验
This commit is contained in:
commit
56dc4105e4
@ -130,9 +130,5 @@ public class ChartGroupService {
|
|||||||
if (ObjectUtils.isNotEmpty(chartGroup.getLevel())) {
|
if (ObjectUtils.isNotEmpty(chartGroup.getLevel())) {
|
||||||
criteria.andLevelEqualTo(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"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1656,10 +1656,6 @@ public class ChartViewService {
|
|||||||
if (StringUtils.isNotEmpty(chartView.getName())) {
|
if (StringUtils.isNotEmpty(chartView.getName())) {
|
||||||
criteria.andNameEqualTo(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) {
|
public ChartDetail getChartDetail(String id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user