Browse Source

修复计算程序没有试试获取用户的钱包

Yangzw 8 months ago
parent
commit
9c9b2284ab

+ 2 - 2
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/service/partitioncrash/PartitionCrashServiceImpl.java

@@ -178,10 +178,10 @@ public class PartitionCrashServiceImpl implements PartitionCrashService {
         duserDOS.forEach(k -> {
 
             // 获取当前用户的钱包
-            IntegralDO integralDO = integralDOMap.get(k.getUserId());
+            IntegralDO integralDO = integralService.selectByUser(k.getUserId());
             // 获取当前父亲的钱包
             Long parent = sonAndParent.get(k.getUserId());
-            IntegralDO parentIntegralDo = integralDOMap.get(parent);
+            IntegralDO parentIntegralDo = integralService.selectByUser(parent);
             if (parentIntegralDo != null) {
 
                 // 创建一个分区编号