云
2026-09-29 f87ce86307056f63f79312178037cc8714eb2b13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cn.iocoder.yudao.module.finance.dal.mysql.reimbursement;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.finance.controller.admin.reimbursement.vo.FinanceReimbursementPageReqVO;
import cn.iocoder.yudao.module.finance.dal.dataobject.reimbursement.FinanceReimbursementDO;
import org.apache.ibatis.annotations.Mapper;
 
@Mapper
public interface FinanceReimbursementMapper extends BaseMapperX<FinanceReimbursementDO> {
 
    default FinanceReimbursementDO selectByNo(String no) {
        return selectOne(FinanceReimbursementDO::getNo, no);
    }
 
    default PageResult<FinanceReimbursementDO> selectPage(FinanceReimbursementPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<FinanceReimbursementDO>()
                .likeIfPresent(FinanceReimbursementDO::getNo, reqVO.getNo())
                .likeIfPresent(FinanceReimbursementDO::getTitle, reqVO.getTitle())
                .eqIfPresent(FinanceReimbursementDO::getStatus, reqVO.getStatus())
                .eqIfPresent(FinanceReimbursementDO::getApplicantId, reqVO.getApplicantId())
                .betweenIfPresent(FinanceReimbursementDO::getApplyDate, reqVO.getApplyDate())
                .orderByDesc(FinanceReimbursementDO::getId));
    }
 
}