package com.remy.goods.dao;

import com.remy.goods.entity.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

import javax.persistence.Id;
import java.util.List;

public interface GoodsDAO extends JpaRepository<Goods, Id> {

    List<Goods> findGoodsByNameLike(String name);

    Goods findGoodsBySerialNo(String serialNo);
}
