refactor: 视图去掉重名校验

This commit is contained in:
wangjiahao 2022-02-22 09:49:59 +08:00
parent 63acd92705
commit 8823a6e035
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) {