package com.muchinfo.mtp3interface.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muchinfo.mtp3pojos.entity.Arearolemarket;
import com.muchinfo.mtp3pojos.entity.Market;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 机构角色市场权限表 Mapper 接口
 * </p>
 *
 * @author XKF
 * @since 2024-07-04
 */
@Mapper
public interface IArearolemarketMapper extends BaseMapper<Arearolemarket> {

    List<Long> getMarketsNameByUseridAndrole(@Param("areauserid") Long areauserid,@Param("types") Integer[] types);

    void deleteOperateGoodsConfig(@Param("userid") Long userid);

    void insertOperateGoodsConfigBatch(@Param("list") List<Map<String, Object>> insertList);
}
