From 3371938767e5bd456ebec1ea3f19e333484a965b Mon Sep 17 00:00:00 2001 From: kanade Date: Sun, 4 Jan 2026 11:38:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(logic):=20=E6=B7=BB=E5=8A=A0=20Ik3cloudID?= =?UTF-8?q?=20=E9=AA=8C=E8=AF=81=E9=98=B2=E6=AD=A2=E6=97=A0=E6=95=88?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 expense.go 中添加 expenseThird.Ik3cloudID > 0 的验证条件 - 在 receipt.go 中添加 receiptThird.Ik3cloudID > 0 的验证条件 - 在 request.go 中添加 requestThird.Ik3cloudID > 0 的验证条件 - 避免对 Ik3cloudID 为 0 的记录执行取消操作 - 防止因无效 ID 导致的第三方支付取消失败 --- erp/expense.go | 2 ++ erp/receipt.go | 2 ++ erp/request.go | 2 ++ 3 files changed, 6 insertions(+) diff --git a/erp/expense.go b/erp/expense.go index ac3fbee..4aaa3c6 100644 --- a/erp/expense.go +++ b/erp/expense.go @@ -42,6 +42,7 @@ type ExpenseItem struct { WorkflowReason string `json:"workflowReason"` ExpenseStaffId int64 `json:"expenseStaffId"` CreatedStaffId int64 `json:"createdStaffId"` + BanFlag int64 `json:"banFlag"` Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` @@ -96,6 +97,7 @@ type ReplyExpenseInfo struct { WorkflowReason string `json:"workflowReason"` ExpenseStaffId int64 `json:"expenseStaffId"` CreatedStaffId int64 `json:"createdStaffId"` + BanFlag int64 `json:"banFlag"` Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` diff --git a/erp/receipt.go b/erp/receipt.go index 98b8d77..9da98c5 100644 --- a/erp/receipt.go +++ b/erp/receipt.go @@ -44,6 +44,7 @@ type ReceiptItem struct { EntryAmount decimal.Decimal `json:"entryAmount"` ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"` CreatedStaffId int64 `json:"createdStaffId"` + BanFlag int64 `json:"banFlag"` Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` @@ -106,6 +107,7 @@ type ReplyReceiptInfo struct { DomesticFeeType int64 `json:"domesticFeeType"` ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"` CreatedStaffId int64 `json:"createdStaffId"` + BanFlag int64 `json:"banFlag"` Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` diff --git a/erp/request.go b/erp/request.go index 516e0b2..699c5c4 100644 --- a/erp/request.go +++ b/erp/request.go @@ -41,6 +41,7 @@ type RequestItem struct { CurrencyRate decimal.Decimal `json:"currencyRate"` Remarks string `json:"remarks"` Amount decimal.Decimal `json:"amount"` + BanFlag int64 `json:"banFlag"` WorkflowId int64 `json:"workflowId"` WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` @@ -106,6 +107,7 @@ type ReplyRequestInfo struct { WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` CreatedStaffId int64 `json:"createdStaffId"` + BanFlag int64 `json:"banFlag"` Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`