修改
This commit is contained in:
parent
aef8f18aad
commit
1c7f01826d
@ -128,8 +128,7 @@ public class DatasetServiceImpl implements DatasetService {
|
||||
if (status != 2 && dataset.getDatasetType() == 2){
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "评估数据集只能上传标注完成的数据"));
|
||||
}
|
||||
if (dataset.getStatus() != status) {
|
||||
}else if (dataset.getStatus() != status) {
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "数据集标注状态错误!应该是【" + DatasetStatusEnum.getStatusByName(status) + "】"));
|
||||
}
|
||||
@ -217,8 +216,7 @@ public class DatasetServiceImpl implements DatasetService {
|
||||
if (status != 2 && updateObj.getDatasetType() == 2){
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "评估数据集只能上传标注完成的数据"));
|
||||
}
|
||||
if (updateObj.getStatus() != status) {
|
||||
}else if (updateObj.getStatus() != status) {
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "数据集标注状态错误!应该是【" + DatasetStatusEnum.getStatusByName(status) + "】"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user