
package com.tmerclub.cloud.multishop.mapper;

import com.tmerclub.cloud.common.vo.ShopSubstituteSalesVO;
import com.tmerclub.cloud.multishop.model.ShopSubstituteSales;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 代销设置表
 *
 * @author lhd
 * @date 2022-06-22 17:09:12
 */
public interface ShopSubstituteSalesMapper {

    /**
     * 获取代销设置表列表
     * @return 代销设置表列表
     */
    List<ShopSubstituteSalesVO> list();

    /**
     * 根据店铺id获取代销设置表
     *
     * @param shopId 店铺设置表id
     * @return 代销设置表
     */
    ShopSubstituteSalesVO getByShopSubstituteSalesId(@Param("shopId") Long shopId);

    /**
     * 保存代销设置表
     * @param shopSubstituteSales 代销设置表
     */
    void save(@Param("shopSubstituteSales") ShopSubstituteSales shopSubstituteSales);

    /**
     * 更新代销设置表
     * @return
     * @param shopSubstituteSales 代销设置表
     */
    int update(@Param("shopSubstituteSales") ShopSubstituteSales shopSubstituteSales);

    /**
     * 根据代销设置表id删除代销设置表
     * @param shopSubstituteSalesId
     */
    void deleteById(@Param("shopSubstituteSalesId") Long shopSubstituteSalesId);

    /**
     * 根据shopIds获取商家的代销配置
     * @param shopIds
     * @return 代销配置
     */
    List<ShopSubstituteSalesVO> listByShopIds(@Param("shopIds") List<Long> shopIds);
}
