package com.fjhx.mapper.stock;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.entity.stock.Stock;
import com.fjhx.params.stock.PageByCombinationVo;
import com.fjhx.params.stock.PageByProductVo;
import com.fjhx.params.stock.PageByWarehouseVo;
import com.fjhx.utils.wrapperUtil.IWrapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 库存 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-11-24
 */
public interface StockMapper extends BaseMapper<Stock> {
    Page<Map<String, Object>> pageByWarehouseId(@Param("page") Page<Object> page, @Param("warehouseId") Long warehouseId);

    Page<PageByWarehouseVo> pageByWarehouse(@Param("page") Page<Object> page, @Param("ew") IWrapper<Object> wrapper);

    Page<PageByProductVo> pageByProduct(@Param("page") Page<Object> page, @Param("ew") IWrapper<Object> wrapper);

    Page<PageByCombinationVo> pageByCombination(@Param("page") Page<Object> page, @Param("ew") IWrapper<Object> wrapper);

}
