|
|
|
@@ -160,7 +160,7 @@ public class DatasetVersionServiceImpl implements DatasetVersionService { |
|
|
|
for (Field field : fields) { |
|
|
|
if (field.isAnnotationPresent(CheckDuplicate.class)) { |
|
|
|
CheckDuplicate annotation = field.getAnnotation(CheckDuplicate.class); |
|
|
|
throw new Exception(annotation.value() + "数据集版本不能重复"); |
|
|
|
throw new Exception(field.getName() + annotation.message()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -183,7 +183,7 @@ public class DatasetVersionServiceImpl implements DatasetVersionService { |
|
|
|
} |
|
|
|
|
|
|
|
private void insertPrepare(DatasetVersion datasetVersion) throws Exception { |
|
|
|
//checkDeclaredVersion(datasetVersion); |
|
|
|
checkDeclaredVersion(datasetVersion); |
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
datasetVersion.setCreateBy(loginUser.getUsername()); |
|
|
|
datasetVersion.setUpdateBy(loginUser.getUsername()); |
|
|
|
|