xiongzhu 4 лет назад
Родитель
Сommit
1bc542442a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/java/com/izouma/nineth/repo/CollectionRepo.java

+ 1 - 1
src/main/java/com/izouma/nineth/repo/CollectionRepo.java

@@ -159,7 +159,7 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
 
     List<Collection> findAllByNameLike(String name);
 
-    @Query(value = "select min(c.price) from collection_info c where c.name like 'MUGEN%' " +
+    @Query(value = "select min(c.price) from collection_info c where c.name like ?1 " +
             "and c.source = 'TRANSFER' " +
             "and c.salable = true " +
             "and c.stock > 0 ", nativeQuery = true)