liujie
2026-09-14 15defa991fcd30b9fa60bab17d2230b5929bf2a2
backend/src/main/java/com/tourguide/modules/order/dto/GuideEarningItemResponse.java
@@ -1,5 +1,6 @@
package com.tourguide.modules.order.dto;
import com.tourguide.modules.order.domain.RefundAmountCalculator;
import com.tourguide.modules.order.entity.TourOrder;
import java.math.BigDecimal;
@@ -25,7 +26,7 @@
        this.orderType = order.getOrderType();
        this.orderAmount = order.getPaymentAmount() == null ? order.getAmount() : order.getPaymentAmount();
        this.commissionRate = order.getCommissionRate();
        this.earningAmount = order.getGuideEarningAmount();
        this.earningAmount = RefundAmountCalculator.refundableAmount(order);
        this.completedAt = order.getCompletedAt();
    }