package com.kiisoo.ic.region.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kiisoo.ic.region.entity.RegionDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RegionDOMapper extends BaseMapper<RegionDO> {

    /**
     * 根据店铺id找到所属区域
     * @param shopIds 店铺id
     * @return
     */
    List<RegionDO> selectRegionsByShopId(@Param("shopIds") List<Long> shopIds);

}
