Browse Source

红娘直播任务

master
张彭杰 2 weeks ago
parent
commit
b12b2c1c81
1 changed files with 4 additions and 4 deletions
  1. 8
      dating-agency-mall-server/src/main/java/com/qniao/dam/domain/service/virtualaccount/CostGiftRewardDomainService.java

8
dating-agency-mall-server/src/main/java/com/qniao/dam/domain/service/virtualaccount/CostGiftRewardDomainService.java

@ -90,8 +90,8 @@ public class CostGiftRewardDomainService {
walletAccountAggregate.save(toWalletAccount); walletAccountAggregate.save(toWalletAccount);
} }
if (CollUtil.isNotEmpty(toWalletAccount.getRecordList())){
toWalletAccount.getRecordList().forEach(record -> {
if (CollUtil.isNotEmpty(toRevenueReward.getRecordList())){
toRevenueReward.getRecordList().forEach(record -> {
eventList.add(TypeConvertUtils.convert(record, RevenueRewardRecordCreatedEvent.class)); eventList.add(TypeConvertUtils.convert(record, RevenueRewardRecordCreatedEvent.class));
}); });
} }
@ -107,8 +107,8 @@ public class CostGiftRewardDomainService {
walletAccountAggregate.save(anchorWalletAccount); walletAccountAggregate.save(anchorWalletAccount);
} }
if (CollUtil.isNotEmpty(anchorWalletAccount.getRecordList())){
anchorWalletAccount.getRecordList().forEach(record -> {
if (CollUtil.isNotEmpty(anchorRevenueReward.getRecordList())){
anchorRevenueReward.getRecordList().forEach(record -> {
eventList.add(TypeConvertUtils.convert(record, RevenueRewardRecordCreatedEvent.class)); eventList.add(TypeConvertUtils.convert(record, RevenueRewardRecordCreatedEvent.class));
}); });
} }

Loading…
Cancel
Save