Spring Boot JPA原生SQL传递对象参数
@Query(value="select * from sorts where parentId = :#{#sorts.parentId} and sortName = :#{#sorts.sortName}",nativeQuery=true ) public Sorts selectBySortNameAndParendId(@Param("sorts") Sorts sorts);
Spring Boot JPA原生SQL传递对象参数
@Query(value="select * from sorts where parentId = :#{#sorts.parentId} and sortName = :#{#sorts.sortName}",nativeQuery=true ) public Sorts selectBySortNameAndParendId(@Param("sorts") Sorts sorts);