[fix] 文件管理

This commit is contained in:
2024-07-15 18:15:51 +08:00
parent ca78b91424
commit 2b29b12235
8 changed files with 82 additions and 24 deletions

View File

@ -30,4 +30,7 @@ public class FilePageReqVO extends PageParam {
@Schema(description = "目录id", example = "12345646")
private Long categoryId;
@Schema(description = "名称", example = "12345646")
private String name;
}

View File

@ -21,6 +21,7 @@ public interface FileMapper extends BaseMapperX<FileDO> {
.likeIfPresent(FileDO::getType, reqVO.getType())
.betweenIfPresent(FileDO::getCreateTime, reqVO.getCreateTime())
.eqIfPresent(FileDO::getCategoryId, reqVO.getCategoryId())
.likeIfPresent(FileDO::getName, reqVO.getName())
.orderByDesc(FileDO::getId));
}