mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
软件购买部分支付方式前序购买记录缺失补充
This commit is contained in:
+12
@@ -197,6 +197,10 @@ public class PayProductProcessor {
|
||||
.initial(initialized)
|
||||
.status(PurchaseRecordStatusEnum.ACTIVE.getStatus())
|
||||
.build();
|
||||
// 记录前序购买记录id
|
||||
if (ObjectUtil.isNotNull(previousPurchaseRecord)) {
|
||||
purchaseRecordDO.setPreviousId(previousPurchaseRecord.getId());
|
||||
}
|
||||
// 新增收支明细
|
||||
// 现金余额减去购买金额
|
||||
BigDecimal newBalance = balance.subtract(price);
|
||||
@@ -253,6 +257,10 @@ public class PayProductProcessor {
|
||||
.initial(initialized)
|
||||
.status(PurchaseRecordStatusEnum.ACTIVE.getStatus())
|
||||
.build();
|
||||
// 记录前序购买记录id
|
||||
if (ObjectUtil.isNotNull(previousPurchaseRecord)) {
|
||||
purchaseRecordDO.setPreviousId(previousPurchaseRecord.getId());
|
||||
}
|
||||
// 新增收支明细
|
||||
// 赠送金余额减去购买金额
|
||||
BigDecimal newGift = gift.subtract(price);
|
||||
@@ -388,6 +396,10 @@ public class PayProductProcessor {
|
||||
.initial(initialized)
|
||||
.status(PurchaseRecordStatusEnum.ACTIVE.getStatus())
|
||||
.build();
|
||||
// 记录前序购买记录id
|
||||
if (ObjectUtil.isNotNull(previousPurchaseRecord)) {
|
||||
purchaseRecordDO.setPreviousId(previousPurchaseRecord.getId());
|
||||
}
|
||||
|
||||
// 先用赠送金
|
||||
if (gift != null && gift.compareTo(BigDecimal.ZERO) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user