//按板块ID查询
@Query(value = "select post from Post post where post.plate = :plateId ")
List<Post> findPostByPlateId(@Param("plateId") String plateId);
有没有大哥知道这里是要传对象还是值啊
...全文
26215打赏收藏
SpringBoot jpa自定义方法的写法
//按板块ID查询 @Query(value = "select post from Post post where post.plate = :plateId ") List findPostByPlateId(@Param("plateId") String plateId); 有没有大哥知道这里是要传对象还是值啊