feat(payment-refund): 新增支付退款原付款用途编号字段

- 在 PaymentRefundItem 结构体中新增 PaymentPurposeNumber 字段
- 在 PaymentRefundAdd 结构体中新增 PaymentPurposeNumber 字段
- 在 ik3cloud 常量中新增 FilterCompareEqualNum 过滤比较常量
This commit is contained in:
2026-10-19 15:33:50 +08:00
parent 25069c5280
commit 14cd13f5a7
2 changed files with 34 additions and 31 deletions

View File

@@ -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 添加(手动创建)

View File

@@ -116,6 +116,7 @@ type FilterCompare = string
const (
FilterCompareEqual FilterCompare = "67" // 等于
FilterCompareEqualNum FilterCompare = "29" // 等于
FilterCompareStatusEqual FilterCompare = "105" // 状态等于
FilterCompareLte FilterCompare = "16" // 小于等于
FilterCompareGte FilterCompare = "39" // 大于等于