首页 > 代码库 > spring data jpa 自定义sql 左链接查询

spring data jpa 自定义sql 左链接查询

@Query(value = "http://www.mamicode.com/select u.* from appuser_te u LEFT JOIN app_user_history his on his.user_id=u.id where his.apple_app_id=:appleAppId limit 1,3",nativeQuery = true)List<AppUser> findByFlushId(@Param(value="http://www.mamicode.com/appleAppId") Integer appleAppId);

 

spring data jpa 自定义sql 左链接查询