新增数据集类型 官方数据集
This commit is contained in:
parent
2b7ad2ac81
commit
d983fa649e
@ -40,4 +40,7 @@ public class DatasetPageReqVO extends PageParam {
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@Schema(description = "数据集类型 0 普通 1 官方", example = "1")
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
|
@ -48,4 +48,6 @@ public class DatasetRespVO {
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@Schema(description = "数据集类型 0 普通 1 官方", example = "1")
|
||||
private Integer type;
|
||||
}
|
||||
|
@ -35,4 +35,7 @@ public class DatasetSaveReqVO {
|
||||
@Schema(description = "文件URL地址", example = "https://www.iocoder.cn")
|
||||
private String datasetFileUrl;
|
||||
|
||||
}
|
||||
@Schema(description = "数据集类型 0 普通 1 官方", example = "1")
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
|
@ -55,5 +55,8 @@ public class DatasetDO extends BaseDO {
|
||||
* 文件URL地址
|
||||
*/
|
||||
private String datasetFileUrl;
|
||||
|
||||
}
|
||||
/**
|
||||
* 数据集类型 0 普通 1 官方
|
||||
*/
|
||||
private Integer type;
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ public interface DatasetMapper extends BaseMapperX<DatasetDO> {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DatasetDO>()
|
||||
.likeIfPresent(DatasetDO::getDatasetName, reqVO.getDatasetName())
|
||||
.eqIfPresent(DatasetDO::getDatasetCategory, reqVO.getDatasetCategory())
|
||||
.eqIfPresent(DatasetDO::getType, reqVO.getType())
|
||||
.eqIfPresent(DatasetDO::getStatus, reqVO.getStatus())
|
||||
.eqIfPresent(DatasetDO::getDatasetIntro, reqVO.getDatasetIntro())
|
||||
.eqIfPresent(DatasetDO::getDatasetFile, reqVO.getDatasetFile())
|
||||
@ -30,4 +31,4 @@ public interface DatasetMapper extends BaseMapperX<DatasetDO> {
|
||||
.orderByDesc(DatasetDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,9 @@ public class DatasetServiceImpl implements DatasetService {
|
||||
|
||||
@Override
|
||||
public Long createDataset(DatasetSaveReqVO createReqVO) {
|
||||
if(createReqVO.getType() == null){
|
||||
createReqVO.setType(0);
|
||||
}
|
||||
// 插入
|
||||
DatasetDO dataset = BeanUtils.toBean(createReqVO, DatasetDO.class);
|
||||
datasetMapper.insert(dataset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user