|
@@ -158,10 +158,6 @@ public class PartitionCrashServiceImpl implements PartitionCrashService {
|
|
|
// 获取当前合赢奖百分比
|
|
|
OrderPercentageDO orderPercentageDO = orderPercentageService.queryStatus();
|
|
|
|
|
|
- // 获取用户的钱包信息
|
|
|
- List<IntegralDO> integralDOS = integralService.selectAllUser();
|
|
|
- Map<Long, IntegralDO> integralDOMap = integralDOS.stream().collect(Collectors.toMap(IntegralDO::getUserId, k -> k));
|
|
|
-
|
|
|
// 获取当前所有用户的父亲
|
|
|
Map<Long, Long> sonAndParent = new HashMap<>();
|
|
|
List<Long> userIds = duserDOS.stream().map(DuserDO::getUserId).collect(Collectors.toList());
|
|
@@ -386,7 +382,7 @@ public class PartitionCrashServiceImpl implements PartitionCrashService {
|
|
|
}
|
|
|
|
|
|
// 获取当前用户的钱包
|
|
|
- IntegralDO integralDO = integralDOMap.get(entry.getKey());
|
|
|
+ IntegralDO integralDO = integralService.selectByUser(entry.getKey());
|
|
|
// 获取当前父亲的钱包
|
|
|
Long highQuota = integralDO.getHighQuota() + new BigDecimal(orderPercentageDO.getBaseMaxQuota()).longValue(); //加上基础的最大额度值
|
|
|
|