From 14cd13f5a797fd1c71fecd5480455aeba001d3eb Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 19 Oct 2026 15:33:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(payment-refund):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=80=80=E6=AC=BE=E5=8E=9F=E4=BB=98=E6=AC=BE?= =?UTF-8?q?=E7=94=A8=E9=80=94=E7=BC=96=E5=8F=B7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 PaymentRefundItem 结构体中新增 PaymentPurposeNumber 字段 - 在 PaymentRefundAdd 结构体中新增 PaymentPurposeNumber 字段 - 在 ik3cloud 常量中新增 FilterCompareEqualNum 过滤比较常量 --- erp/paymentRefund.go | 64 ++++++++++++++++++----------------- ik3cloud/constant/constant.go | 1 + 2 files changed, 34 insertions(+), 31 deletions(-) diff --git a/erp/paymentRefund.go b/erp/paymentRefund.go index 194f2f9..8ecd532 100644 --- a/erp/paymentRefund.go +++ b/erp/paymentRefund.go @@ -29,26 +29,27 @@ type ReplyPaymentRefundList struct { List []PaymentRefundItem `json:"list"` } type PaymentRefundItem struct { - Id int64 `json:"id"` - PaymentRefundSerial string `json:"paymentRefundSerial"` - FactoryId int64 `json:"factoryId"` - FactoryName string `json:"factoryName"` - Amount decimal.Decimal `json:"amount"` - Currency string `json:"currency"` - CurrencyName string `json:"currencyName"` - CurrencySymbol string `json:"currencySymbol"` - CurrencyRate decimal.Decimal `json:"currencyRate"` - RefundDate time.Time `json:"refundDate"` - BankAccount string `json:"bankAccount"` - InvoiceSerial string `json:"invoiceSerial"` - PaymentPurpose string `json:"paymentPurpose"` - Remark string `json:"remark"` - Ik3cloudStatus int64 `json:"ik3CloudStatus"` - Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` - Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` - CreatedStaffId int64 `json:"createdStaffId"` - CreatedAt *time.Time `json:"createdAt"` - UpdatedAt *time.Time `json:"updatedAt"` + Id int64 `json:"id"` + PaymentRefundSerial string `json:"paymentRefundSerial"` + FactoryId int64 `json:"factoryId"` + FactoryName string `json:"factoryName"` + Amount decimal.Decimal `json:"amount"` + Currency string `json:"currency"` + CurrencyName string `json:"currencyName"` + CurrencySymbol string `json:"currencySymbol"` + CurrencyRate decimal.Decimal `json:"currencyRate"` + RefundDate time.Time `json:"refundDate"` + BankAccount string `json:"bankAccount"` + InvoiceSerial string `json:"invoiceSerial"` + PaymentPurposeNumber string `json:"paymentPurposeNumber"` + PaymentPurpose string `json:"paymentPurpose"` + Remark string `json:"remark"` + Ik3cloudStatus int64 `json:"ik3CloudStatus"` + Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` + Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` + CreatedStaffId int64 `json:"createdStaffId"` + CreatedAt *time.Time `json:"createdAt"` + UpdatedAt *time.Time `json:"updatedAt"` } type PaymentRefundCostItem struct { Id int64 `json:"id"` @@ -73,17 +74,18 @@ type ArgsPaymentRefundAdd struct { PaymentRefundAdd } type PaymentRefundAdd struct { - FactoryId int64 // 工厂id - Currency string // 币种 - CurrencyName string // 币种名称 - CurrencySymbol string // 币种符号 - CurrencyRate decimal.Decimal // 币种汇率 - RefundDate time.Time // 退款日期 - Amount decimal.Decimal // 金额 - Remark string // 备注 - PaymentPurpose string // 原付款用途 - BankAccount string // 我方银行账号 - InvoiceSerial string // 发票号 + FactoryId int64 // 工厂id + Currency string // 币种 + CurrencyName string // 币种名称 + CurrencySymbol string // 币种符号 + CurrencyRate decimal.Decimal // 币种汇率 + RefundDate time.Time // 退款日期 + Amount decimal.Decimal // 金额 + Remark string // 备注 + PaymentPurposeNumber string // 原付款用途 + PaymentPurpose string // 原付款用途 + BankAccount string // 我方银行账号 + InvoiceSerial string // 发票号 } // Add @TITLE 添加(手动创建) diff --git a/ik3cloud/constant/constant.go b/ik3cloud/constant/constant.go index 1512dfb..f0a0b9e 100644 --- a/ik3cloud/constant/constant.go +++ b/ik3cloud/constant/constant.go @@ -116,6 +116,7 @@ type FilterCompare = string const ( FilterCompareEqual FilterCompare = "67" // 等于 + FilterCompareEqualNum FilterCompare = "29" // 等于 FilterCompareStatusEqual FilterCompare = "105" // 状态等于 FilterCompareLte FilterCompare = "16" // 小于等于 FilterCompareGte FilterCompare = "39" // 大于等于