package cn.iocoder.yudao.module.member.dal.mysql.user;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.member.dal.dataobject.user.MemberPointsExchangeDO;
import org.apache.ibatis.annotations.Mapper;


/**
 * 会员积分兑换 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface MemberPointsExchangeMapper extends BaseMapperX<MemberPointsExchangeDO> {

//    default PageResult<PointsExchangeDO> selectPage(PointsExchangePageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<PointsExchangeDO>()
//                .eqIfPresent(PointsExchangeDO::getMemberUserId, reqVO.getMemberUserId())
//                .likeIfPresent(PointsExchangeDO::getItemName, reqVO.getItemName())
//                .eqIfPresent(PointsExchangeDO::getCount, reqVO.getCount())
//                .betweenIfPresent(PointsExchangeDO::getExchangeDate, reqVO.getExchangeDate())
//                .eqIfPresent(PointsExchangeDO::getPoints, reqVO.getPoints())
//                .eqIfPresent(PointsExchangeDO::getRemarks, reqVO.getRemarks())
//                .betweenIfPresent(PointsExchangeDO::getCreatedTime, reqVO.getCreatedTime())
//                .eqIfPresent(PointsExchangeDO::getCreatedBy, reqVO.getCreatedBy())
//                .orderByDesc(PointsExchangeDO::getId));
//    }

}