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.entity.MgrRoleArea;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MgrRoleAreaMapper extends BaseMapper<MgrRoleArea> {
   List<Long> getTenantAreaIdList(@Param("excludeMiddle") Integer excludeMiddle, @Param("authPO") MgrUserAuthPO mgrUserAuthPO);
//
//   void insertBatch(@Param("roleId") Long roleId, @Param("areaList") List<MgrRoleAreaDTO> areaList);
//
//   List<MgrRole> getRoleListByDataId(@Param("dataId") Long dataId, @Param("roleIdList") List<Long> roleIdList, @Param("excludeMiddle") Integer excludeMiddle);
}
