参考实例
@Query("from GoodsInfo f where f.deleteFlag = '0' and f.auditStatus in ('0', '3') and f.id in ?1 order by field(f.id, ?1)") List<GoodsInfo> findByIdIn(List<Long> ids);
参考实例
@Query("from GoodsInfo f where f.deleteFlag = '0' and f.auditStatus in ('0', '3') and f.id in ?1 order by field(f.id, ?1)") List<GoodsInfo> findByIdIn(List<Long> ids);