package com.fs.hisStore.mapper;

import com.fs.hisStore.domain.FsStoreProductTagScrm;
import com.fs.hisStore.vo.FsStoreProductTagListVO;
import com.fs.hisStore.vo.FsStoreTagProductVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品标签 Mapper
 */
public interface FsStoreProductTagScrmMapper {

    FsStoreProductTagScrm selectById(Long id);

    List<FsStoreProductTagListVO> selectListVO(FsStoreProductTagScrm query);

    int insert(FsStoreProductTagScrm entity);

    int update(FsStoreProductTagScrm entity);

    int deleteById(Long id);

    int deleteByIds(Long[] ids);

    /** 查询标签下关联商品（分页：商品ID、名称、主图、售价、状态） */
    List<FsStoreTagProductVO> selectProductsByTagId(@Param("tagId") Long tagId);
}
