package com.jeeplus.test.jobPosion.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.jobPosion.domain.Position;
import com.jeeplus.test.jobPosion.service.dto.PositionCategoryDTO;
import com.jeeplus.test.jobPosion.service.dto.PositionDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PositionMapper extends BaseMapper<Position> {

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

    public void updateSortByIdList(@Param("list") List<PositionDTO> positionDTOList);
}