|
@@ -793,7 +793,7 @@ public class IndexMgrController extends BaseApiController {
|
|
|
List<UserCoinLog> userCoins = userCoinLogService.list(
|
|
|
new QueryWrapper<UserCoinLog>().between(null != queryParam.getStartTime() && null != queryParam.getEndTime(), "created_time", queryParam.getStartTime(), queryParam.getEndTime()));
|
|
|
int userCoinCost = userCoins.stream().filter(c -> c.getLogMoney() > 0 && c.getType().getValue().equals(CoinLogTypeEnum.PRIZE.getValue())).mapToInt(UserCoinLog::getLogMoney).sum() * 10;
|
|
|
-
|
|
|
+ userCoinCost += userCoins.stream().filter(c -> c.getLogMoney() > 0 && c.getType().getValue().equals(CoinLogTypeEnum.RECOVERY.getValue())).mapToInt(UserCoinLog::getLogMoney).sum() * 10;
|
|
|
return commAmt + allPrizeStorageGoodsCost + couponCost.get() + userCoinCost;
|
|
|
}
|
|
|
|