提交 | 用户 | 时间
|
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.config.FileConfigPageReqVO; |
|
7 |
import com.iailab.module.infra.dal.dataobject.file.FileConfigDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
@Mapper |
|
11 |
public interface FileConfigMapper extends BaseMapperX<FileConfigDO> { |
|
12 |
|
|
13 |
default PageResult<FileConfigDO> selectPage(FileConfigPageReqVO reqVO) { |
|
14 |
return selectPage(reqVO, new LambdaQueryWrapperX<FileConfigDO>() |
|
15 |
.likeIfPresent(FileConfigDO::getName, reqVO.getName()) |
|
16 |
.eqIfPresent(FileConfigDO::getStorage, reqVO.getStorage()) |
|
17 |
.betweenIfPresent(FileConfigDO::getCreateTime, reqVO.getCreateTime()) |
|
18 |
.orderByDesc(FileConfigDO::getId)); |
|
19 |
} |
|
20 |
|
|
21 |
default FileConfigDO selectByMaster() { |
|
22 |
return selectOne(FileConfigDO::getMaster, true); |
|
23 |
} |
|
24 |
|
|
25 |
} |