fix: 修复数据集移动可以重名的问题

This commit is contained in:
junjun 2023-09-07 17:59:32 +08:00
parent 81f967ec7c
commit 19e7e1a127

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