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

@@ -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"`