提交代码

This commit is contained in:
jiang 2024-12-03 18:07:15 +08:00
parent ab4c0ddc85
commit af1cff7ba0
1 changed files with 5 additions and 2 deletions

View File

@ -18,6 +18,7 @@ import io.minio.errors.MinioException;
import io.minio.messages.Item;
import javafx.util.Pair;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -108,8 +109,10 @@ public class DatasetServiceImpl implements DatasetService {
@Override
public List<DataSetEntity> getDatasetList(DataSetEntity dataSet) {
try {
String userId = SecurityUtils.getUserId().toString();
dataSet.setCreateBy(userId);
if (ObjectUtils.isEmpty(dataSet.getIsPublic())){
String userId = SecurityUtils.getUserId().toString();
dataSet.setCreateBy(userId);
}
return datasetMapper.getDatasetList(dataSet);
} catch (Exception e) {
log.error("获取数据集列表失败", e);