mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
确认开票-购买记录列表接口补充订单总额属性
This commit is contained in:
+2
@@ -30,6 +30,8 @@ public class InvoicePurchaseRecord {
|
||||
@Schema(description = "可开票金额")
|
||||
private BigDecimal invoicableAmount;
|
||||
|
||||
@Schema(description = "订单总额")
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
@Schema(description = "交易时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
+1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user