package cn.newfeifan.mall.module.distri.dal.mysql.integral;

import cn.newfeifan.mall.framework.mybatis.core.mapper.BaseMapperX;
import cn.newfeifan.mall.module.distri.dal.dataobject.integral.IntegralDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 推荐用户积分 Mapper
 *
 * @author 非繁人
 */
@Mapper
public interface IntegralMapper extends BaseMapperX<IntegralDO> {

//    default PageResult<IntegralDO> selectPage(IntegralPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<IntegralDO>()
//                .eqIfPresent(IntegralDO::getUserId, reqVO.getUserId())
//                .eqIfPresent(IntegralDO::getCurrentQuota, reqVO.getCurrentQuota())
//                .eqIfPresent(IntegralDO::getFreezeQuota, reqVO.getFreezeQuota())
//                .eqIfPresent(IntegralDO::getCategoryId, reqVO.getCategoryId())
//                .betweenIfPresent(IntegralDO::getCreateTime, reqVO.getCreateTime())
//                .orderByDesc(IntegralDO::getId));
//    }

}