package cn.pluss.platform.mapper;

import cn.pluss.platform.dto.SubMerchantDTO;
import cn.pluss.platform.entity.SubMerchant;
import cn.pluss.platform.vo.SubMerchantVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;

public interface SubMerchantMapper extends BaseMapper<SubMerchant> {

    /**
     * 分页查询
     * @param page      分页参数
     * @param wrapper   查询条件
     * @return          查询结果
     */
    Page<SubMerchantVO> pageVO(Page<SubMerchantVO> page, @Param(Constants.WRAPPER) Wrapper<SubMerchantDTO> wrapper);
}
