Merge pull request #6071 from dataease/pr@dev@fix_folder

fix: 修复数据集移动可以重名的问题
This commit is contained in:
Junjun 2023-09-07 18:00:48 +08:00 committed by GitHub
commit 6ed6bfa3f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));