package cn.iocoder.yudao.module.system.dal.mysql.biz;


import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.controller.admin.biz.vo.ExpenseSubsidyPageReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ExpenseSubsidyDO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 长者长护险 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface ExpenseSubsidyMapper extends BaseMapperX<ExpenseSubsidyDO> {
    List<ExpenseSubsidyDO> getExpenseSubsidyPage(Page<ExpenseSubsidyDO> page, @Param("pageReqVO") ExpenseSubsidyPageReqVO pageReqVO);

//    default PageResult<ExpenseSubsidyDO> selectPage(ExpenseSubsidyPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<ExpenseSubsidyDO>()
//                .eqIfPresent(ExpenseSubsidyDO::getElderId, reqVO.getElderId())
//                .eqIfPresent(ExpenseSubsidyDO::getMonth, reqVO.getMonth())
//                .eqIfPresent(ExpenseSubsidyDO::getAmount, reqVO.getAmount())
//                .eqIfPresent(ExpenseSubsidyDO::getSubsidyDestination, reqVO.getSubsidyDestination())
//                .eqIfPresent(ExpenseSubsidyDO::getRemarks, reqVO.getRemarks())
//                .eqIfPresent(ExpenseSubsidyDO::getStatus, reqVO.getStatus())
//                .eqIfPresent(ExpenseSubsidyDO::getDeductionBillMonth, reqVO.getDeductionBillMonth())
//                .eqIfPresent(ExpenseSubsidyDO::getReturnStatus, reqVO.getReturnStatus())
//                .eqIfPresent(ExpenseSubsidyDO::getOrderNumber, reqVO.getOrderNumber())
//                .orderByDesc(ExpenseSubsidyDO::getId));
//    }

}