package cn.iocoder.yudao.module.tkdata.dal.mysql.newhosts;

import cn.iocoder.yudao.module.tkdata.dal.dataobject.countryinfo.CountryInfoDO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.interfaces.MPJBaseJoin;
import com.github.yulichang.wrapper.MPJLambdaWrapper;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.tkdata.dal.dataobject.newhosts.NewHostsDO;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.tkdata.controller.admin.newhosts.vo.*;
import org.apache.ibatis.annotations.Param;

/**
 * 主播数据 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface NewHostsMapper extends BaseMapperX<NewHostsDO> {

//    default PageResult<NewHostsDO> selectPage(NewHostsPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<NewHostsDO>()
//                .eqIfPresent(NewHostsDO::getHostsId, reqVO.getHostsId())
//                .eqIfPresent(NewHostsDO::getHostsLevel, reqVO.getHostsLevel())
//                .eqIfPresent(NewHostsDO::getHostsCoins, reqVO.getHostsCoins())
//                .eqIfPresent(NewHostsDO::getInvitationType, reqVO.getInvitationType())
//                .eqIfPresent(NewHostsDO::getOnlineFans, reqVO.getOnlineFans())
//                .eqIfPresent(NewHostsDO::getFans, reqVO.getFans())
//                .eqIfPresent(NewHostsDO::getFllowernum, reqVO.getFllowernum())
//                .eqIfPresent(NewHostsDO::getYesterdayCoins, reqVO.getYesterdayCoins())
//                .eqIfPresent(NewHostsDO::getCountry, reqVO.getCountry())
//                .eqIfPresent(NewHostsDO::getHostsKind, reqVO.getHostsKind())
//                .eqIfPresent(NewHostsDO::getIsAssigned, reqVO.getIsAssigned())
//                .betweenIfPresent(NewHostsDO::getCreateTime, reqVO.getCreateTime())
//                .eqIfPresent(NewHostsDO::getUserId, reqVO.getUserId())
//                .orderByDesc(NewHostsDO::getId));
//    }

    IPage<NewHostsDO> selectPageWithXML(IPage<NewHostsDO> page,@Param("req") NewHostsPageReqVO reqVO);
}