From 586367b43022e36795ed1e6f477e7efc3576b5ff Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 13 Aug 2026 17:53:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(expense):=20=E6=B7=BB=E5=8A=A0=E6=89=93?= =?UTF-8?q?=E6=AC=BE=E9=87=91=E9=A2=9D=E5=92=8C=E6=B1=87=E7=8E=87=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在Expense结构体中新增PaymentAmount字段用于记录打款金额 - 在ExpenseDetails结构体中新增PaymentAmount字段保持数据一致性 - 在ExpenseChangeItem结构体中新增PaymentAmount和CurrencyRate字段 - 更新相关数据结构以支持打款金额和汇率的变更跟踪 --- erp/expense.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/erp/expense.go b/erp/expense.go index a01c197..c0e7d5f 100644 --- a/erp/expense.go +++ b/erp/expense.go @@ -58,6 +58,7 @@ type ExpenseItem struct { BankName string `json:"bankName"` PayAt *time.Time `json:"payAt"` Amount decimal.Decimal `json:"amount"` + PaymentAmount decimal.Decimal `json:"paymentAmount"` WorkflowId int64 `json:"workflowId"` WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` @@ -124,6 +125,7 @@ type ReplyExpenseInfo struct { CurrencySymbol string `json:"currencySymbol"` CurrencyRate decimal.Decimal `json:"currencyRate"` Amount decimal.Decimal `json:"amount"` + PaymentAmount decimal.Decimal `json:"paymentAmount"` Remarks string `json:"remarks"` BankAccount string `json:"bankAccount"` BankName string `json:"bankName"` @@ -178,8 +180,10 @@ type ArgsExpenseChange struct { ExpenseChangeItem } type ExpenseChangeItem struct { - BankAccount string // 银行账号 - BankName string // 账号名称 + BankAccount string // 银行账号 + BankName string // 账号名称 + PaymentAmount decimal.Decimal // 打款金额 + CurrencyRate decimal.Decimal // 汇率 } // BatchChange @TITLE 批量修改