package cn.pluss.platform.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import cn.pluss.platform.entity.RealFans;
import cn.pluss.platform.vo.RealFansVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RealFansMapper extends BaseMapper<RealFans> {

    @Select("SELECT * FROM tb_pluss_real_fans WHERE soleId = #{soleId}")
    List<RealFans> queryBySoleId(@Param("soleId") String soleId);

    List<RealFans> queryRealFansPage(Map map);

    Integer queryRealFansPageCount(Map map);

    void saveRealFansBatch(List<RealFans> realFansList);
    
    /**
     * 
     * queryRealFansListManagePage:(manage展示). <br/> 
     * 
     * @author Administrator 
     * @param map
     * @return 
     * @since JDK 1.8
     */
    List<RealFansVO> queryRealFansListManagePage(Map<String, Object> map);
    
    /**
     * 
     * queryRealFansListManagePage:(manage展示). <br/> 
     * 
     * @author Administrator 
     * @param map
     * @return 
     * @since JDK 1.8
     */
    Integer queryRealFansListManagePageCount(Map<String, Object> map);

    /**
     * 分页查询
     * @param page
     * @param realFans
     * @return
     */
    Page<RealFans> pageData(@Param("page") Page<RealFans> page,@Param("realFans") RealFans realFans);
}

