forked from github/dataease
Merge pull request #6071 from dataease/pr@dev@fix_folder
fix: 修复数据集移动可以重名的问题
This commit is contained in:
commit
6ed6bfa3f8
@ -152,9 +152,6 @@ public class DataSetGroupService {
|
||||
if (StringUtils.isNotEmpty(datasetGroup.getId())) {
|
||||
criteria.andIdNotEqualTo(datasetGroup.getId());
|
||||
}
|
||||
if (ObjectUtils.isNotEmpty(datasetGroup.getLevel())) {
|
||||
criteria.andLevelEqualTo(datasetGroup.getLevel());
|
||||
}
|
||||
List<DatasetGroup> list = datasetGroupMapper.selectByExample(datasetGroupExample);
|
||||
if (list.size() > 0) {
|
||||
throw new RuntimeException(Translator.get("I18N_DATASET_GROUP_EXIST"));
|
||||
|
Loading…
Reference in New Issue
Block a user