|
|
@@ -684,7 +684,7 @@ public class AssetService {
|
|
|
// .map(TokenHistory::getPrice)
|
|
|
// .reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
Map<String, BigDecimal> map = new HashMap<>();
|
|
|
- map.put("sale", BigDecimal.ZERO);
|
|
|
+ map.put("sale", tokenHistoryRepo.userSale(userId));
|
|
|
map.put("buy", rockRecordRepo.findRecordByUserIdOrderByIdDesc(userId));
|
|
|
return map;
|
|
|
}
|