|
|
@ -108,7 +108,6 @@ public class MarriageBountyOrderApplicationService extends BaseApplicationServic |
|
|
orderItem.getSubCategory(), productSpec.getUnitOriginalPrice(), productSpec.getUnitOriginalPrice())); |
|
|
orderItem.getSubCategory(), productSpec.getUnitOriginalPrice(), productSpec.getUnitOriginalPrice())); |
|
|
rewardCategoryPriceMap.put(orderItem.getSubCategory().getValue(), orderItem.getUnitSettlementPrice()); |
|
|
rewardCategoryPriceMap.put(orderItem.getSubCategory().getValue(), orderItem.getUnitSettlementPrice()); |
|
|
}); |
|
|
}); |
|
|
marriageBountyOrder.setProductRecordList(Collections.singletonList(productRecord)); |
|
|
|
|
|
//悬赏招亲订单奖励 |
|
|
//悬赏招亲订单奖励 |
|
|
for (MarriageBountyOrderReward orderReward : marriageBountyOrder.getOrderRewardList()) { |
|
|
for (MarriageBountyOrderReward orderReward : marriageBountyOrder.getOrderRewardList()) { |
|
|
if (!orderReward.getIsReceive()) { |
|
|
if (!orderReward.getIsReceive()) { |
|
|
@ -119,6 +118,8 @@ public class MarriageBountyOrderApplicationService extends BaseApplicationServic |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
marriageBountyOrder.calculateRewardAmount(); |
|
|
marriageBountyOrder.calculateRewardAmount(); |
|
|
|
|
|
productRecord.setRewardAmount(marriageBountyOrder.getRewardAmount()); |
|
|
|
|
|
marriageBountyOrder.setProductRecordList(Collections.singletonList(productRecord)); |
|
|
marriageBountyOrderAggregate.update(marriageBountyOrder); |
|
|
marriageBountyOrderAggregate.update(marriageBountyOrder); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|