From 5813fe05cee5127b6c9e6b871ea15a4f73071666 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 18 Dec 2025 16:37:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E7=9B=B8=E5=85=B3=E5=AD=97=E6=AE=B5=E5=88=B0?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E5=92=8C=E8=AF=B7=E6=B1=82=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 expense.go 的 Expense 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段 - 在 expense.go 的 ExpenseResponse 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段 - 在 request.go 的 Request 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段 - 在 request.go 的 RequestResponse 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段 --- erp/expense.go | 6 ++++++ erp/request.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/erp/expense.go b/erp/expense.go index 9195645..e9cbe01 100644 --- a/erp/expense.go +++ b/erp/expense.go @@ -36,6 +36,9 @@ type ExpenseItem struct { CurrencyRate decimal.Decimal `json:"currencyRate"` Remarks string `json:"remarks"` Amount decimal.Decimal `json:"amount"` + WorkflowId int64 `json:"workflowId"` + WorkflowStatus int64 `json:"workflowStatus"` + WorkflowReason string `json:"workflowReason"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` @@ -83,6 +86,9 @@ type ReplyExpenseInfo struct { CurrencyRate decimal.Decimal `json:"currencyRate"` Amount decimal.Decimal `json:"amount"` Remarks string `json:"remarks"` + WorkflowId int64 `json:"workflowId"` + WorkflowStatus int64 `json:"workflowStatus"` + WorkflowReason string `json:"workflowReason"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` diff --git a/erp/request.go b/erp/request.go index dd38514..702572f 100644 --- a/erp/request.go +++ b/erp/request.go @@ -40,6 +40,9 @@ type RequestItem struct { CurrencyRate decimal.Decimal `json:"currencyRate"` Remarks string `json:"remarks"` Amount decimal.Decimal `json:"amount"` + WorkflowId int64 `json:"workflowId"` + WorkflowStatus int64 `json:"workflowStatus"` + WorkflowReason string `json:"workflowReason"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` @@ -95,6 +98,9 @@ type ReplyRequestInfo struct { CurrencyRate decimal.Decimal `json:"currencyRate"` Amount decimal.Decimal `json:"amount"` Remarks string `json:"remarks"` + WorkflowId int64 `json:"workflowId"` + WorkflowStatus int64 `json:"workflowStatus"` + WorkflowReason string `json:"workflowReason"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"`