package org.dromara.zhishu.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.zhishu.domain.ShopWarehouseAuto;

import java.util.List;

/**
 * 店铺与仓库自动发布关联Mapper接口
 *
 * @author yxy
 * @date 2025-12-28
 */
@Mapper
public interface ShopWarehouseAutoMapper {

    /**
     * 根据店铺ID删除关联
     */
    @InterceptorIgnore(tenantLine = "true")
    int deleteByShopId(Long shopId);


    @InterceptorIgnore(tenantLine = "true")
    List<ShopWarehouseAuto> selectList(ShopWarehouseAuto shopWarehouse);

    /**
     * 根据店铺ID查询关联列表
     */
    @InterceptorIgnore(tenantLine = "true")
    List<ShopWarehouseAuto> selectByShopId(Long shopId);

    /**
     * 新增店铺与仓库关联
     */
    @InterceptorIgnore(tenantLine = "true")
    int insert(ShopWarehouseAuto shopWarehouse);


    /**
     * 根据ID查询关联
     */
    @InterceptorIgnore(tenantLine = "true")
    ShopWarehouseAuto selectById(Long id);

    /**
     * 根据ID删除关联
     */
    @InterceptorIgnore(tenantLine = "true")
    int deleteById(Long id);

    /**
     * 更新关联信息
     */
    @InterceptorIgnore(tenantLine = "true")
    int update(ShopWarehouseAuto shopWarehouse);
}