package com.bonus.canteen.core.auth.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.auth.po.MgrUserAuthPO;
import com.bonus.canteen.core.auth.role.dto.MgrRoleWarehouse;
import com.bonus.canteen.core.drp.vo.DrpWarehouseAllVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MgrRoleWarehouseMapper extends BaseMapper<MgrRoleWarehouse> {
   int insertBatch(@Param("roleId") Long roleId, @Param("warehouseList") List<Long> warehouseList);

   List<DrpWarehouseAllVO> getTenantWarehouse(@Param("authPO") MgrUserAuthPO mgrUserAuthPO, @Param("delFlag") Integer delFlag);
}
