|
|
@@ -83,6 +83,6 @@ public interface OrderRepo extends JpaRepository<Order, Long>, JpaSpecificationE
|
|
|
@Modifying
|
|
|
int processingOrder(Long id, LocalDateTime payTime, PayMethod payMethod, String transactionId);
|
|
|
|
|
|
- @Query(value = "select sum(price) from order_info where user_id = 6330925 and status = 'FINISH'", nativeQuery = true)
|
|
|
+ @Query(value = "select sum(price) from order_info where user_id = ?1 and status = 'FINISH'", nativeQuery = true)
|
|
|
BigDecimal sumUserPrice(Long userId);
|
|
|
}
|