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.test.rank.domain.RankSequence;
import com.jeeplus.test.rank.service.dto.RankSequenceDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RankSequenceMapper extends BaseMapper<RankSequence> {

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

    public List<RankSequenceDTO> getList(@Param(Constants.WRAPPER)QueryWrapper<RankSequence> queryWrapper);

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

    public RankSequenceDTO queryById(@Param("id") String id);
}