注解@Query使用in


@Query(value = "select count(*) from financial_style_productitem_detailed fspd where fspd.id in(:ids)", nativeQuery = true)
  Integer findByStyleIds(@Param(value = "ids") List<String> ids);
@Query("select new ResultInfo(r.displayName,r.result.id,r.result.createdDate,r.result.createdBy.displayName) from ResultInfo r where r.result.id not in ?1 and r.secUser.id<>?2 and r.createdBy.id<>?3 and r.creator=?4")
    Page<ResultInfo> findToBeSharedResultInfoeListTwo(List<String>beSharedIdList,
                                                      String secUserId,
                                                      String createdById,
                                                      Boolean creator,
                                                      Pageable pageable);


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM