package com.izouma.dingdong.repo.merchant;

import com.izouma.dingdong.domain.merchant.GoodsSpecification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface GoodsSpecificationRepo extends JpaRepository<GoodsSpecification, Long>, JpaSpecificationExecutor<GoodsSpecification> {
    //按商品ID查询
    List<GoodsSpecification> findAllByGoodsId(Long goodsId);

    void deleteByGoodsId(Long goodsId);
}