|
|
@@ -49,6 +49,6 @@ public interface BlindBoxItemRepo extends JpaRepository<BlindBoxItem, Long>, Jpa
|
|
|
@Transactional
|
|
|
void increaseStockAndDecreaseSale(Long id, int num);
|
|
|
|
|
|
- @Query(nativeQuery = true, value = "select sum(stock) stock ,sum(total) total from blind_box_item where blind_box_id = ?1 and name like ?2 AND NAME NOT LIKE ?3")
|
|
|
+ @Query(nativeQuery = true, value = "select sum(total - sale) stock ,sum(total) total from blind_box_item where blind_box_id = ?1 and name like ?2 AND NAME NOT LIKE ?3")
|
|
|
Map<String, BigDecimal> getBlindBoxRare(Long blindBoxId, String rare, String not);
|
|
|
}
|