feat(expense): 添加打款金额和汇率字段支持
- 在Expense结构体中新增PaymentAmount字段用于记录打款金额 - 在ExpenseDetails结构体中新增PaymentAmount字段保持数据一致性 - 在ExpenseChangeItem结构体中新增PaymentAmount和CurrencyRate字段 - 更新相关数据结构以支持打款金额和汇率的变更跟踪
This commit is contained in:
@@ -58,6 +58,7 @@ type ExpenseItem struct {
|
|||||||
BankName string `json:"bankName"`
|
BankName string `json:"bankName"`
|
||||||
PayAt *time.Time `json:"payAt"`
|
PayAt *time.Time `json:"payAt"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
|
PaymentAmount decimal.Decimal `json:"paymentAmount"`
|
||||||
WorkflowId int64 `json:"workflowId"`
|
WorkflowId int64 `json:"workflowId"`
|
||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
@@ -124,6 +125,7 @@ type ReplyExpenseInfo struct {
|
|||||||
CurrencySymbol string `json:"currencySymbol"`
|
CurrencySymbol string `json:"currencySymbol"`
|
||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
|
PaymentAmount decimal.Decimal `json:"paymentAmount"`
|
||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
BankAccount string `json:"bankAccount"`
|
BankAccount string `json:"bankAccount"`
|
||||||
BankName string `json:"bankName"`
|
BankName string `json:"bankName"`
|
||||||
@@ -178,8 +180,10 @@ type ArgsExpenseChange struct {
|
|||||||
ExpenseChangeItem
|
ExpenseChangeItem
|
||||||
}
|
}
|
||||||
type ExpenseChangeItem struct {
|
type ExpenseChangeItem struct {
|
||||||
BankAccount string // 银行账号
|
BankAccount string // 银行账号
|
||||||
BankName string // 账号名称
|
BankName string // 账号名称
|
||||||
|
PaymentAmount decimal.Decimal // 打款金额
|
||||||
|
CurrencyRate decimal.Decimal // 汇率
|
||||||
}
|
}
|
||||||
|
|
||||||
// BatchChange @TITLE 批量修改
|
// BatchChange @TITLE 批量修改
|
||||||
|
|||||||
Reference in New Issue
Block a user