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.menu.vo.MenuCategoryTreeVO;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpInventory;
import com.bonus.canteen.core.supply.purchase.domain.vo.MaterialInventoryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface DrpInventoryMapper extends BaseMapper<DrpInventory> {
   @Select({"select category_id id, parent_id, category_name from menu_material_category"})
   List<MenuCategoryTreeVO> selectCategoryTree(Integer delFlag);
   List<MaterialInventoryVO> selectInventoryByMaterialIdList(@Param("materialIdList") List<Long> materialIdList, @Param("warehouseId") Long warehouseId);
}
