|
@@ -214,6 +214,27 @@ public class ConsumptionErrorLogServiceImpl implements ConsumptionErrorLogServic
|
|
|
uesdMap.forEach((k, v) -> uesdMap.put(k, v * -1));
|
|
|
refundMap.forEach((k, v) -> uesdMap.put(k, uesdMap.get(k) - v));
|
|
|
|
|
|
+
|
|
|
+ Map<Long, Long> cancelMap = consumptionChangeLogService.selectListByStatus(ConsumptionEnum.CANCEL_ORDER_BACK_CONSUMPTION_POINTS.getType()).stream()
|
|
|
+ .collect(Collectors.groupingBy(
|
|
|
+ ConsumptionChangeLogDO::getUserId,
|
|
|
+ Collectors.reducing(0L,
|
|
|
+ ConsumptionChangeLogDO::getConsumptionPoints,
|
|
|
+ Long::sum
|
|
|
+ )
|
|
|
+ ));
|
|
|
+
|
|
|
+ Map<Long, Long> orderOverTimeMap = consumptionChangeLogService.selectListByStatus(ConsumptionEnum.ORDER_CANCEL_BY_SYSTEM_REFUND_INTEGRAL.getType()).stream()
|
|
|
+ .collect(Collectors.groupingBy(
|
|
|
+ ConsumptionChangeLogDO::getUserId,
|
|
|
+ Collectors.reducing(0L,
|
|
|
+ ConsumptionChangeLogDO::getConsumptionPoints,
|
|
|
+ Long::sum
|
|
|
+ )
|
|
|
+ ));
|
|
|
+ cancelMap.forEach((k, v) -> uesdMap.put(k, uesdMap.get(k) - v));
|
|
|
+ orderOverTimeMap.forEach((k, v) -> uesdMap.put(k, uesdMap.get(k) - v));
|
|
|
+
|
|
|
|
|
|
Map<Long, Long> transferLogMap = consumptionTransferLogService.selectList().stream()
|
|
|
.collect(Collectors.groupingBy(
|