Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a37f776b7a
@ -125,6 +125,10 @@ public class DatasetServiceImpl implements DatasetService {
|
||||
if (annoCount == 0) {
|
||||
status = 0;
|
||||
}
|
||||
if (CollectionUtils.isEmpty(datasetFiles)){
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "数据集文件不能为空"));
|
||||
}
|
||||
if (status != 2 && dataset.getDatasetType() == 2){
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "评估数据集只能上传标注完成的数据"));
|
||||
@ -213,6 +217,10 @@ public class DatasetServiceImpl implements DatasetService {
|
||||
if (annoCount == 0) {
|
||||
status=0;
|
||||
}
|
||||
if (CollectionUtils.isEmpty(datasetFiles)){
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "数据集文件不能为空"));
|
||||
}
|
||||
if (status != 2 && updateObj.getDatasetType() == 2){
|
||||
throw new ServiceException(new ErrorCode(
|
||||
20000, "评估数据集只能上传标注完成的数据"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user