From 4f6f15b818704079ff2e4e4719b798f48d68a335 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 11 九月 2026 13:52:19 +0800
Subject: [PATCH] update
---
backend/src/main/java/com/tourguide/modules/order/dto/GuideOrderResponse.java | 4 ++++
1 files changed, 4 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 675ba47..350ccaa 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
@@ -1,6 +1,7 @@
package com.tourguide.modules.order.dto;
import com.tourguide.modules.order.entity.TourOrder;
+import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;
@@ -21,6 +22,7 @@
private final LocalDateTime lectureStartTime;
private final LocalDateTime lectureEndTime;
private final LocalDateTime completedAt;
+ private final BigDecimal earningAmount;
private final String customerPhone;
private final List<Customer> customers;
@@ -39,6 +41,7 @@
this.lectureStartTime = firstPresent(order.getServiceStartedAt(), order.getArrivedAt());
this.lectureEndTime = order.getCompletedAt();
this.completedAt = order.getCompletedAt();
+ this.earningAmount = order.getGuideEarningAmount();
this.customerPhone = order.getVisitorMobile();
this.customers = Collections.singletonList(new Customer(
1,
@@ -104,6 +107,7 @@
public LocalDateTime getLectureStartTime() { return lectureStartTime; }
public LocalDateTime getLectureEndTime() { return lectureEndTime; }
public LocalDateTime getCompletedAt() { return completedAt; }
+ public BigDecimal getEarningAmount() { return earningAmount; }
public String getCustomerPhone() { return customerPhone; }
public List<Customer> getCustomers() { return customers; }
--
Gitblit v1.7.1