package com.iailab.module.infra.dal.mysql.file; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.mybatis.core.mapper.BaseMapperX; import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; import com.iailab.module.infra.controller.admin.file.vo.config.FileConfigPageReqVO; import com.iailab.module.infra.dal.dataobject.file.FileConfigDO; import org.apache.ibatis.annotations.Mapper; @Mapper public interface FileConfigMapper extends BaseMapperX { default PageResult selectPage(FileConfigPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .likeIfPresent(FileConfigDO::getName, reqVO.getName()) .eqIfPresent(FileConfigDO::getStorage, reqVO.getStorage()) .betweenIfPresent(FileConfigDO::getCreateTime, reqVO.getCreateTime()) .orderByDesc(FileConfigDO::getId)); } default FileConfigDO selectByMaster() { return selectOne(FileConfigDO::getMaster, true); } }