fix(logic): 添加 Ik3cloudID 验证防止无效取消操作

- 在 expense.go 中添加 expenseThird.Ik3cloudID > 0 的验证条件
- 在 receipt.go 中添加 receiptThird.Ik3cloudID > 0 的验证条件
- 在 request.go 中添加 requestThird.Ik3cloudID > 0 的验证条件
- 避免对 Ik3cloudID 为 0 的记录执行取消操作
- 防止因无效 ID 导致的第三方支付取消失败
This commit is contained in:
2026-01-04 11:38:12 +08:00
parent 08bce95691
commit 3371938767
3 changed files with 6 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ type ExpenseItem struct {
WorkflowReason string `json:"workflowReason"` WorkflowReason string `json:"workflowReason"`
ExpenseStaffId int64 `json:"expenseStaffId"` ExpenseStaffId int64 `json:"expenseStaffId"`
CreatedStaffId int64 `json:"createdStaffId"` CreatedStaffId int64 `json:"createdStaffId"`
BanFlag int64 `json:"banFlag"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
@@ -96,6 +97,7 @@ type ReplyExpenseInfo struct {
WorkflowReason string `json:"workflowReason"` WorkflowReason string `json:"workflowReason"`
ExpenseStaffId int64 `json:"expenseStaffId"` ExpenseStaffId int64 `json:"expenseStaffId"`
CreatedStaffId int64 `json:"createdStaffId"` CreatedStaffId int64 `json:"createdStaffId"`
BanFlag int64 `json:"banFlag"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`

View File

@@ -44,6 +44,7 @@ type ReceiptItem struct {
EntryAmount decimal.Decimal `json:"entryAmount"` EntryAmount decimal.Decimal `json:"entryAmount"`
ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"` ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"`
CreatedStaffId int64 `json:"createdStaffId"` CreatedStaffId int64 `json:"createdStaffId"`
BanFlag int64 `json:"banFlag"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
@@ -106,6 +107,7 @@ type ReplyReceiptInfo struct {
DomesticFeeType int64 `json:"domesticFeeType"` DomesticFeeType int64 `json:"domesticFeeType"`
ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"` ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"`
CreatedStaffId int64 `json:"createdStaffId"` CreatedStaffId int64 `json:"createdStaffId"`
BanFlag int64 `json:"banFlag"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`

View File

@@ -41,6 +41,7 @@ type RequestItem struct {
CurrencyRate decimal.Decimal `json:"currencyRate"` CurrencyRate decimal.Decimal `json:"currencyRate"`
Remarks string `json:"remarks"` Remarks string `json:"remarks"`
Amount decimal.Decimal `json:"amount"` Amount decimal.Decimal `json:"amount"`
BanFlag int64 `json:"banFlag"`
WorkflowId int64 `json:"workflowId"` WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"` WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"` WorkflowReason string `json:"workflowReason"`
@@ -106,6 +107,7 @@ type ReplyRequestInfo struct {
WorkflowStatus int64 `json:"workflowStatus"` WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"` WorkflowReason string `json:"workflowReason"`
CreatedStaffId int64 `json:"createdStaffId"` CreatedStaffId int64 `json:"createdStaffId"`
BanFlag int64 `json:"banFlag"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`