|
@@ -30,7 +30,7 @@ public interface MintActivityRepo extends JpaRepository<MintActivity, Long>, Jpa
|
|
|
@Query("select c.stock from MintActivity c where c.id = ?1")
|
|
@Query("select c.stock from MintActivity c where c.id = ?1")
|
|
|
Integer getStock(Long id);
|
|
Integer getStock(Long id);
|
|
|
|
|
|
|
|
- @Query("update Collection c set c.stock = ?2 where c.id = ?1")
|
|
|
|
|
|
|
+ @Query("update MintActivity c set c.stock = ?2 where c.id = ?1")
|
|
|
@Transactional
|
|
@Transactional
|
|
|
@Modifying
|
|
@Modifying
|
|
|
int updateStock(Long id, int stock);
|
|
int updateStock(Long id, int stock);
|