package com.cpxt.biz.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cpxt.biz.domain.BizCustomerRoute;
import com.cpxt.biz.domain.BizCustomerRouteShop;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 路线店铺关联Mapper接口
 *
 * @author YIN
 * @date 2024-12-16
 */
@Mapper
public interface BizCustomerRouteShopMapper extends BaseMapper<BizCustomerRouteShop>
{
    @Select("select shop_id from biz_customer_route_shop where route_id = ${id}")
    List<Long> selectShopIdListByRouteId(Long id);

    @Delete("delete from biz_customer_route_shop where route_id = ${id}")
    void deleteByRouteId(Long id);
}
