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