diff --git a/backend/internal/modules/dispute/repository.go b/backend/internal/modules/dispute/repository.go index a90d8c3..8f81ea1 100644 --- a/backend/internal/modules/dispute/repository.go +++ b/backend/internal/modules/dispute/repository.go @@ -358,7 +358,7 @@ func buildArbitrationSettlement(order model.RentalOrder, req ArbitrateRequest, r UserID: order.RenterID, OrderID: &orderID, Direction: "out", - Amount: releaseFrozenAmount, + AmountCent: int64(math.Round(releaseFrozenAmount * 100)), BalanceType: "frozen", BizType: "arbitration_release_frozen", BizNo: order.OrderNo, @@ -381,7 +381,7 @@ func buildArbitrationSettlement(order model.RentalOrder, req ArbitrateRequest, r UserID: order.OwnerID, OrderID: &orderID, Direction: "in", - Amount: amount, + AmountCent: int64(math.Round(amount * 100)), BalanceType: "available", BizType: "arbitration_owner_income", BizNo: order.OrderNo,