20 lines
444 B
Java
20 lines
444 B
Java
package net.alawn.bill.repository;
|
|
|
|
import net.alawn.bill.entity.po.Main;
|
|
import net.alawn.bill.entity.po.Post;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @Author: Alawn
|
|
* @Description:
|
|
* @Date: Create in 11:14 2019-05-23
|
|
*/
|
|
|
|
@Repository
|
|
public interface MainRepo extends JpaRepository<Main, Long> {
|
|
List<Main> findByPost(Post post);
|
|
}
|