jpa @Query中使用in,需要注意参数一定要是List<>,不然无法查询出数据。
@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);
jpa @Query中使用in,需要注意参数一定要是List<>,不然无法查询出数据。
@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);
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。