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.RefundSettlementOrderPageReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.RefundSettlementOrderDO;
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 RefundSettlementOrderMapper extends BaseMapperX<RefundSettlementOrderDO> {
    List<RefundSettlementOrderDO> getRefundSettlementOrderPage(Page<RefundSettlementOrderDO> page,@Param("params") RefundSettlementOrderPageReqVO pageReqVO);

//    default PageResult<RefundSettlementOrderDO> selectPage(RefundSettlementOrderPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<RefundSettlementOrderDO>()
//                .eqIfPresent(RefundSettlementOrderDO::getElderId, reqVO.getElderId())
//                .eqIfPresent(RefundSettlementOrderDO::getStatus, reqVO.getStatus())
//                .betweenIfPresent(RefundSettlementOrderDO::getSettlementTime, reqVO.getSettlementTime())
//                .likeIfPresent(RefundSettlementOrderDO::getSettlementPersonName, reqVO.getSettlementPersonName())
//                .eqIfPresent(RefundSettlementOrderDO::getRefundAmount, reqVO.getRefundAmount())
//                .betweenIfPresent(RefundSettlementOrderDO::getCreatedTime, reqVO.getCreatedTime())
//                .eqIfPresent(RefundSettlementOrderDO::getCreatedBy, reqVO.getCreatedBy())
//                .orderByDesc(RefundSettlementOrderDO::getId));
//    }

}