package com.bonus.canteen.core.drp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.drp.model.DrpWarehouse;
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> {
//   Page<DrpWarehousePageVO> selectAllList(Page<DrpWarehousePageVO> page, @Param("content") DrpWarehousePageDTO content, @Param("delFlag") Integer delFlag, @Param("warehouseAuthority") List<Long> warehouseAuthority, @Param("areaAuth") List<Long> areaAuth);
//
//   List<DrpWarehouseAllVO> selectAllWareHouse(@Param("delFlag") Integer delFlag, @Param("status") Integer status, @Param("warehouseAuthority") List<Long> warehouseAuthority, @Param("warehouseName") String warehouseName, @Param("areaAuth") List<Long> areaAuth, @Param("content") DrpWarehouseAllDTO content);

   @Select({"select warehouse_name from drp_warehouse where warehouse_id = #{warehouseId}"})
   String selectNameById(Long warehouseId);

//   String selectMaxNum(@Param("warehouseNumLength") Integer warehouseNumLength, @Param("delFlag") Integer delFlag);
//
//   List<DrpWarehouseInventoryNum> getInventoryNumByWarehouseIds(@Param("warehouseIdList") List<Long> warehouseIdList, @Param("materialId") Long materialId, @Param("unitId") Long unitId);
//
//   DrpFetchUserVO getFetchUserByWarehouseId(@Param("warehouseId") Long warehouseId);
}
