From 82a8bc62d5b9d5d607f6952329952b17eda2f0a0 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 14 九月 2026 15:44:34 +0800
Subject: [PATCH] update
---
backend/src/main/java/com/tourguide/modules/order/dto/GuideOrderResponse.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/backend/src/main/java/com/tourguide/modules/order/dto/GuideOrderResponse.java b/backend/src/main/java/com/tourguide/modules/order/dto/GuideOrderResponse.java
index 6c1b3dd..1253fe9 100644
--- a/backend/src/main/java/com/tourguide/modules/order/dto/GuideOrderResponse.java
+++ b/backend/src/main/java/com/tourguide/modules/order/dto/GuideOrderResponse.java
@@ -28,6 +28,7 @@
private final LocalDateTime lectureStartTime;
private final LocalDateTime lectureEndTime;
private final LocalDateTime completedAt;
+ private final BigDecimal paymentAmount;
private final BigDecimal earningAmount;
private final String customerPhone;
private final List<Customer> customers;
@@ -54,6 +55,7 @@
this.lectureStartTime = firstPresent(order.getServiceStartedAt(), order.getArrivedAt());
this.lectureEndTime = order.getCompletedAt();
this.completedAt = order.getCompletedAt();
+ this.paymentAmount = order.getPaymentAmount() == null ? order.getAmount() : order.getPaymentAmount();
this.earningAmount = order.getGuideEarningAmount();
this.customerPhone = order.getVisitorMobile();
this.customers = Collections.singletonList(new Customer(
@@ -141,6 +143,7 @@
public LocalDateTime getLectureStartTime() { return lectureStartTime; }
public LocalDateTime getLectureEndTime() { return lectureEndTime; }
public LocalDateTime getCompletedAt() { return completedAt; }
+ public BigDecimal getPaymentAmount() { return paymentAmount; }
public BigDecimal getEarningAmount() { return earningAmount; }
public String getCustomerPhone() { return customerPhone; }
public List<Customer> getCustomers() { return customers; }
--
Gitblit v1.7.1