fix: 修复积分消耗趋势图表数据源,使用score字段替代scoreReward
This commit is contained in:
parent
53187071d5
commit
b58efbdbe5
@ -293,8 +293,9 @@ public class AnalyticsService {
|
||||
.filter(t -> "completed".equals(t.getStatus()))
|
||||
.count();
|
||||
|
||||
// 使用 score 字段(预估积分)作为积分消耗,因为 scoreReward 字段未被使用
|
||||
BigDecimal scoreUsed = dateTasks.stream()
|
||||
.map(Task::getScoreReward)
|
||||
.map(Task::getScore)
|
||||
.filter(Objects::nonNull)
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user