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);