|
@@ -970,10 +970,11 @@ public class PaymentDivMemberRecordServiceImpl extends ServiceImpl<PaymentDivMem
|
|
|
AccountBizTypeEnum bizTypeEnum = AccountBizTypeEnum.valueOf(userPaymentOrder.getOrderType().name());
|
|
|
BigDecimal amount = tenantdivMap.values().stream().reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
PostStatusEnum platformPostStatus = PostStatusEnum.RECORDED;
|
|
|
+ SourceTypeEnum sourceType = SourceTypeEnum.ORDER;
|
|
|
if (accountTenantTo.getIncomeTenant() >0 ){
|
|
|
amount = tenantdivMap.get(-1L);
|
|
|
platformPostStatus = PostStatusEnum.WAIT;
|
|
|
-
|
|
|
+ sourceType = SourceTypeEnum.TENANT;
|
|
|
}
|
|
|
|
|
|
if (amount.compareTo(BigDecimal.ZERO) <= 0) {
|
|
@@ -983,6 +984,8 @@ public class PaymentDivMemberRecordServiceImpl extends ServiceImpl<PaymentDivMem
|
|
|
PlatformCashAccountRecord platformCashAccountRecord = new PlatformCashAccountRecord(userPaymentOrder.getUserId(), amount,
|
|
|
InOrOutEnum.IN, platformPostStatus, bizTypeEnum, userPaymentOrder.getBizId(),
|
|
|
userPaymentOrder.getOrderNo(), date);
|
|
|
+ platformCashAccountRecord.setSourceType(sourceType);
|
|
|
+
|
|
|
platformCashAccountRecordService.save(platformCashAccountRecord);
|
|
|
if (accountTenantTo.getIncomeTenant() >0 ){
|
|
|
// 写入机构支出到平台
|
|
@@ -1045,6 +1048,7 @@ public class PaymentDivMemberRecordServiceImpl extends ServiceImpl<PaymentDivMem
|
|
|
PlatformCashAccountRecord platformCashAccountRecord2 = new PlatformCashAccountRecord(userPaymentOrder.getUserId(), amount,
|
|
|
InOrOutEnum.OUT, PostStatusEnum.WAIT, bizTypeEnum, userPaymentOrder.getBizId(),
|
|
|
userPaymentOrder.getOrderNo(), date);
|
|
|
+ platformCashAccountRecord2.setSourceType(SourceTypeEnum.TENANT);
|
|
|
platformCashAccountRecordService.save(platformCashAccountRecord2);
|
|
|
platformCashAccountRecordId = platformCashAccountRecord2.getId();
|
|
|
}
|