diff --git a/erp/constant.go b/erp/constant.go index 581ca00..3588f79 100644 --- a/erp/constant.go +++ b/erp/constant.go @@ -167,6 +167,6 @@ const ( type ExpenseType = int64 const ( - ExpenseTypeNormal PaymentType = 1 // 普通费用 - ExpenseTypeTrave PaymentType = 2 // 差旅费 + ExpenseTypeNormal ExpenseType = 1 // 普通费用 + ExpenseTypeTrave ExpenseType = 2 // 差旅费 ) diff --git a/erp/expense.go b/erp/expense.go index 8bf137a..8653239 100644 --- a/erp/expense.go +++ b/erp/expense.go @@ -47,6 +47,7 @@ type ExpenseCount struct { } type ExpenseItem struct { Id int64 `json:"id"` + Type int64 `json:"type"` ExpenseSerial string `json:"expenseSerial"` Currency string `json:"currency"` CurrencyName string `json:"currencyName"` @@ -96,7 +97,7 @@ type ExpenseAdd struct { BankAccount string // 银行账号 BankName string // 账号名称 TravelStaffIds []int64 // 出差员工 - TraveStartAt *time.Time // 出差开始日期 + TravelStartAt *time.Time // 出差开始日期 TravelEndAt *time.Time // 出差结束日期 TravelLocation string // 地点 TravelReason string // 出差事由 @@ -126,7 +127,7 @@ type ReplyExpenseInfo struct { BankAccount string `json:"bankAccount"` BankName string `json:"bankName"` TravelStaffIds []int64 `json:"travelStaffIds"` - TraveStartAt *time.Time `json:"traveStartAt"` + TravelStartAt *time.Time `json:"travelStartAt"` TravelEndAt *time.Time `json:"travelEndAt"` TravelLocation string `json:"travelLocation"` TravelReason string `json:"travelReason"`