package com.izouma.dingdong.repo.merchant;

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

import java.util.List;

public interface FullReductionRepo extends JpaRepository<FullReduction, Long>, JpaSpecificationExecutor<FullReduction> {

    //查找商户下的所有满减
    List<FullReduction> findAllByMerchantId(Long merchantId);

    //查找商户下的所有满减
//    List<FullReduction> findAllByUserId(Long userId);


}