package com.platform.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.platform.entity.GoodsEntity;
import org.apache.ibatis.annotations.Param;

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

/**
 * @author abnerhou
 * @date 2020/5/22 9:10
 * @desciption
 */
public interface GoodsCustomDao extends BaseMapper<GoodsEntity> {

    List<Map<String,Object>> getGoodsCategory(@Param("ew") QueryWrapper<GoodsEntity> queryWrapper);


    IPage<Map<String,Object>> queryGoodsByBrandId(IPage<?> iPage , @Param(value = "brandId") Integer brandId ,
                                           @Param(value = "categoryId") Integer categoryId,
                                           @Param(value = "goodsName") String goodsName);
}
