package com.bonus.canteen.core.supply.purchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpWarehouse;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpWarehouseInventoryNum;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpFetchUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DrpWarehouseMapper extends BaseMapper<DrpWarehouse> {

   List<DrpWarehouseInventoryNum> getInventoryNumByWarehouseIds(@Param("warehouseIdList") List<Long> warehouseIdList, @Param("materialId") Long materialId, @Param("unitId") Long unitId);

   DrpFetchUserVO getFetchUserByWarehouseId(@Param("warehouseId") Long warehouseId);
}
