确认开票-购买记录列表接口补充订单总额属性

This commit is contained in:
gaoqr
2025-10-14 14:08:58 +08:00
parent dadaf09e4a
commit 0a06f5408f
2 changed files with 3 additions and 0 deletions
@@ -30,6 +30,8 @@ public class InvoicePurchaseRecord {
@Schema(description = "可开票金额")
private BigDecimal invoicableAmount;
@Schema(description = "订单总额")
private BigDecimal totalAmount;
@Schema(description = "交易时间")
private LocalDateTime createTime;
@@ -285,6 +285,7 @@ public class InvoiceServiceImpl implements InvoiceService {
invoicePurchaseRecord.setProductName(purchaseRecordDO.getProductName());
invoicePurchaseRecord.setTradeType(TradeTypeEnum.PRODUCT.getCode());
invoicePurchaseRecord.setInvoicableAmount(purchaseRecordDO.getTotalAmount().subtract(purchaseRecordDO.getGiftMoneySpent()));
invoicePurchaseRecord.setTotalAmount(purchaseRecordDO.getTotalAmount());
invoicePurchaseRecord.setCreateTime(purchaseRecordDO.getCreateTime());
invoicePurchaseRecords.add(invoicePurchaseRecord);
}