提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.dal.mysql.file; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
6 |
import com.iailab.module.infra.controller.admin.file.vo.file.FilePageReqVO; |
|
7 |
import com.iailab.module.infra.dal.dataobject.file.FileDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
/** |
|
11 |
* 文件操作 Mapper |
|
12 |
* |
|
13 |
* @author iailab |
|
14 |
*/ |
|
15 |
@Mapper |
|
16 |
public interface FileMapper extends BaseMapperX<FileDO> { |
|
17 |
|
|
18 |
default PageResult<FileDO> selectPage(FilePageReqVO reqVO) { |
|
19 |
return selectPage(reqVO, new LambdaQueryWrapperX<FileDO>() |
|
20 |
.likeIfPresent(FileDO::getPath, reqVO.getPath()) |
|
21 |
.likeIfPresent(FileDO::getType, reqVO.getType()) |
|
22 |
.betweenIfPresent(FileDO::getCreateTime, reqVO.getCreateTime()) |
|
23 |
.orderByDesc(FileDO::getId)); |
|
24 |
} |
|
25 |
|
|
26 |
} |