|
|
@@ -61,7 +61,7 @@ public interface StoreInDao extends JpaSpecificationExecutor<StoreIn>, JpaReposi
|
|
|
* @param num
|
|
|
* @return
|
|
|
*/
|
|
|
- @Query(nativeQuery = true, value = "SELECT * FROM (select * from store$info s where s.st_type in :types order by s.st_total_reserve desc) WHERE ROWNUM <= :num")
|
|
|
+ @Query(nativeQuery = true, value = "select * from store$info s where s.st_type in :types order by s.st_total_reserve desc LIMIT :num")
|
|
|
List<StoreIn> findFiveStoresByType(@Param("num") Integer num, @Param("types") List<String> types);
|
|
|
|
|
|
/**
|