修复预计 截止时间

This commit is contained in:
yml
2026-06-17 23:10:38 +08:00
parent f8156aec44
commit 0add23dedb
8 changed files with 162 additions and 3 deletions
@@ -11,6 +11,7 @@ import (
func (row orderRow) toAdminDTO() OrderDTO {
rentedAt := row.RentedAt
durationHours := orderDurationHours(row.RentalOrder)
estimatedEndAt := orderEstimatedEndAt(row.RentalOrder)
rentAmountCent := row.RentAmountCent
ownerRentAmountCent := row.OwnerRentAmountCent
platformFeeCent := row.PlatformFeeCent
@@ -29,6 +30,7 @@ func (row orderRow) toAdminDTO() OrderDTO {
LoginPlatform: row.LoginPlatform,
RentedAt: rentedAt,
EstimatedDurationHours: durationHours,
EstimatedEndAt: estimatedEndAt,
PriceRole: "admin",
DisplayAmountCent: row.RentAmountCent,
RentAmountCent: &rentAmountCent,