package com.jeeplus.test.rank.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.core.query.Query;
import com.jeeplus.test.rank.domain.Rank;
import com.jeeplus.test.rank.service.dto.RankDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RankMapper extends BaseMapper<Rank> {

    public IPage<RankDTO> findList(Page<RankDTO> page,@Param(Constants.WRAPPER) QueryWrapper<Rank> queryWrapper);

    public RankDTO getById(@Param("id") String id);

    public void updateUseFlagById(@Param("ids") List<String> ids, @Param("useFlag") String useFlag);

    public List<RankDTO> getRankByPosition(@Param("id") String id);
}