feat(erp): 添加金蝶推送状态字段
- 在constant.go中添加Ik3cloudStatus类型和相关常量定义 - 为ExpenseItem和ReplyExpenseInfo结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为PayableItem和ReplyPayableInfo结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为receipt.go中的结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为receivable.go中的结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为request.go中的结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 修正receivable.go中Ik3cloudStatus字段的数据类型从Flag改为int64
This commit is contained in:
@@ -89,3 +89,11 @@ const (
|
|||||||
DomesticFeeTypeForeign DomesticFeeType = 1 // 外币
|
DomesticFeeTypeForeign DomesticFeeType = 1 // 外币
|
||||||
DomesticFeeTypeRMB DomesticFeeType = 2 // 人民币
|
DomesticFeeTypeRMB DomesticFeeType = 2 // 人民币
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type Ik3cloudStatus = int64 // 金蝶推送状态
|
||||||
|
const (
|
||||||
|
Ik3cloudStatusNone Ik3cloudStatus = 1 // 未推送
|
||||||
|
Ik3cloudStatusIng Ik3cloudStatus = 2 // 推送中
|
||||||
|
Ik3cloudStatusSuccess Ik3cloudStatus = 3 // 推送成功
|
||||||
|
Ik3cloudStatusFail Ik3cloudStatus = 4 // 推送失败
|
||||||
|
)
|
||||||
|
|||||||
@@ -29,21 +29,24 @@ type ReplyExpenseList struct {
|
|||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
}
|
}
|
||||||
type ExpenseItem struct {
|
type ExpenseItem struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
ExpenseSerial string `json:"expenseSerial"`
|
ExpenseSerial string `json:"expenseSerial"`
|
||||||
Currency string `json:"currency"`
|
Currency string `json:"currency"`
|
||||||
CurrencyName string `json:"currencyName"`
|
CurrencyName string `json:"currencyName"`
|
||||||
CurrencySymbol string `json:"currencySymbol"`
|
CurrencySymbol string `json:"currencySymbol"`
|
||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
WorkflowId int64 `json:"workflowId"`
|
WorkflowId int64 `json:"workflowId"`
|
||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
ExpenseStaffId int64 `json:"expenseStaffId"`
|
ExpenseStaffId int64 `json:"expenseStaffId"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// List @TITLE 列表
|
// List @TITLE 列表
|
||||||
@@ -80,21 +83,24 @@ func (r *expense) Add(ctx context.Context, args ArgsExpenseAdd) (expenseId int64
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReplyExpenseInfo struct {
|
type ReplyExpenseInfo struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
ExpenseSerial string `json:"expenseSerial"`
|
ExpenseSerial string `json:"expenseSerial"`
|
||||||
Currency string `json:"currency"`
|
Currency string `json:"currency"`
|
||||||
CurrencyName string `json:"currencyName"`
|
CurrencyName string `json:"currencyName"`
|
||||||
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"`
|
||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
WorkflowId int64 `json:"workflowId"`
|
WorkflowId int64 `json:"workflowId"`
|
||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
ExpenseStaffId int64 `json:"expenseStaffId"`
|
ExpenseStaffId int64 `json:"expenseStaffId"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info @TITLE 详情
|
// Info @TITLE 详情
|
||||||
|
|||||||
@@ -28,19 +28,22 @@ type ReplyPayableList struct {
|
|||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
}
|
}
|
||||||
type PayableItem struct {
|
type PayableItem struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
PayableSerial string `json:"payableSerial"`
|
PayableSerial string `json:"payableSerial"`
|
||||||
InvoiceSerial string `json:"invoiceSerial"`
|
InvoiceSerial string `json:"invoiceSerial"`
|
||||||
AccountingSerial string `json:"accountingSerial"`
|
AccountingSerial string `json:"accountingSerial"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
Currency string `json:"currency"`
|
Currency string `json:"currency"`
|
||||||
CurrencyName string `json:"currencyName"`
|
CurrencyName string `json:"currencyName"`
|
||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
CurrencySymbol string `json:"currencySymbol"`
|
CurrencySymbol string `json:"currencySymbol"`
|
||||||
IsConfirm int64 `json:"isConfirm"`
|
IsConfirm int64 `json:"isConfirm"`
|
||||||
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// List @TITLE 列表
|
// List @TITLE 列表
|
||||||
@@ -54,21 +57,24 @@ func (p *payable) List(ctx context.Context, args ArgsPayableList) (reply ReplyPa
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReplyPayableInfo struct {
|
type ReplyPayableInfo struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
PayableSerial string `json:"payableSerial"`
|
PayableSerial string `json:"payableSerial"`
|
||||||
AccountingSerial string `json:"accountingSerial"`
|
AccountingSerial string `json:"accountingSerial"`
|
||||||
InvoiceSerial string `json:"invoiceSerial"`
|
InvoiceSerial string `json:"invoiceSerial"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
Currency string `json:"currency"`
|
Currency string `json:"currency"`
|
||||||
CurrencyName string `json:"currencyName"`
|
CurrencyName string `json:"currencyName"`
|
||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
CurrencySymbol string `json:"currencySymbol"`
|
CurrencySymbol string `json:"currencySymbol"`
|
||||||
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
||||||
IsConfirm int64 `json:"isConfirm"`
|
IsConfirm int64 `json:"isConfirm"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
Products []PayableProductItem `json:"products"`
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
Costs []PayableCostItem `json:"costs"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
|
Products []PayableProductItem `json:"products"`
|
||||||
|
Costs []PayableCostItem `json:"costs"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PayableProductItem struct {
|
type PayableProductItem struct {
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ type ReceiptItem struct {
|
|||||||
EntryAmount decimal.Decimal `json:"entryAmount"`
|
EntryAmount decimal.Decimal `json:"entryAmount"`
|
||||||
ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"`
|
ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
@@ -103,6 +106,9 @@ type ReplyReceiptInfo struct {
|
|||||||
DomesticFeeType int64 `json:"domesticFeeType"`
|
DomesticFeeType int64 `json:"domesticFeeType"`
|
||||||
ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"`
|
ReceivableFxAmount decimal.Decimal `json:"receivableFxAmount"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,9 @@ type ReceivableItem struct {
|
|||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
CurrencySymbol string `json:"currencySymbol"`
|
CurrencySymbol string `json:"currencySymbol"`
|
||||||
CreatedStaffID int64 `json:"createdStaffID"`
|
CreatedStaffID int64 `json:"createdStaffID"`
|
||||||
Ik3cloudStatus Flag `json:"ik3CloudStatus"`
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
@@ -68,7 +70,9 @@ type ReplyReceivableInfo struct {
|
|||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
CurrencySymbol string `json:"currencySymbol"`
|
CurrencySymbol string `json:"currencySymbol"`
|
||||||
CreatedStaffID int64 `json:"createdStaffID"`
|
CreatedStaffID int64 `json:"createdStaffID"`
|
||||||
Ik3cloudStatus Flag `json:"ik3CloudStatus"`
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
Products []ReceivableProductItem `json:"products"`
|
Products []ReceivableProductItem `json:"products"`
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ type RequestItem struct {
|
|||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
@@ -103,6 +106,9 @@ type ReplyRequestInfo struct {
|
|||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
|
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||||
|
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||||
|
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user