feat(tenant): 按租户隔离支付退款与商户配置

This commit is contained in:
yml
2026-11-15 16:06:30 +08:00
parent 6d2affa15f
commit c7dacfa025
33 changed files with 767 additions and 233 deletions
@@ -103,6 +103,7 @@ func appendCheckoutOwnerIncome(tx *gorm.DB, order *model.RentalOrder, listing *m
var ownerEntries []wallet.Entry
if settlement.OwnerRentIncomeCent > 0 {
ownerEntries = append(ownerEntries, wallet.Entry{
TenantID: order.SourceTenantID,
UserID: order.OwnerID,
DistributionSiteID: siteID,
OrderID: &orderID,
@@ -116,6 +117,7 @@ func appendCheckoutOwnerIncome(tx *gorm.DB, order *model.RentalOrder, listing *m
}
if settlement.DepositCompensationCent > 0 {
ownerEntries = append(ownerEntries, wallet.Entry{
TenantID: order.SourceTenantID,
UserID: order.OwnerID,
DistributionSiteID: siteID,
OrderID: &orderID,