feat(accounting): 更新会计模块数据结构以支持应付生成状态跟踪
- 在 RequestAccountingList 中添加 HasGenPayable 字段用于标识是否生成应付 - 将 ReplyAccountingList 中的 GenPayableFlag 字段替换为 HasGenPayable 整型字段 - 在 ReplyAccountingInfo 结构体中同步添加 HasGenPayable 状态字段 - 移除已废弃的 GenPayableFlag 布尔类型字段 - 统一应付生成状态的数据类型为 int64 格式便于后续扩展
This commit is contained in:
@@ -29,6 +29,7 @@ type AccountingSearch struct {
|
|||||||
StaffIds []int64 // 业务员
|
StaffIds []int64 // 业务员
|
||||||
AccountingIds []int64 // 做账id
|
AccountingIds []int64 // 做账id
|
||||||
BanFlag int64 // 是否有效
|
BanFlag int64 // 是否有效
|
||||||
|
HasGenPayable int64 // 是否生成应付
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReplyAccountingList struct {
|
type ReplyAccountingList struct {
|
||||||
@@ -48,7 +49,7 @@ type AccountingItem struct {
|
|||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
BanFlag int64 `json:"banFlag"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
GenPayableFlag bool `json:"genPayableFlag"`
|
HasGenPayable int64 `json:"hasGenPayable"`
|
||||||
TotalBoxCount int64 `json:"totalBoxCount"`
|
TotalBoxCount int64 `json:"totalBoxCount"`
|
||||||
TotalAmount decimal.Decimal `json:"totalAmount"`
|
TotalAmount decimal.Decimal `json:"totalAmount"`
|
||||||
TotalVolume decimal.Decimal `json:"totalVolume"`
|
TotalVolume decimal.Decimal `json:"totalVolume"`
|
||||||
@@ -139,6 +140,7 @@ type ReplyAccountingInfo struct {
|
|||||||
WorkflowStatus int64 `json:"workflowStatus"`
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
WorkflowReason string `json:"workflowReason"`
|
WorkflowReason string `json:"workflowReason"`
|
||||||
BanFlag int64 `json:"banFlag"`
|
BanFlag int64 `json:"banFlag"`
|
||||||
|
HasGenPayable int64 `json:"hasGenPayable"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
TotalBoxCount int64 `json:"totalBoxCount"`
|
TotalBoxCount int64 `json:"totalBoxCount"`
|
||||||
@@ -146,7 +148,6 @@ type ReplyAccountingInfo struct {
|
|||||||
TotalVolume decimal.Decimal `json:"totalVolume"`
|
TotalVolume decimal.Decimal `json:"totalVolume"`
|
||||||
TotalGrossWeight decimal.Decimal `json:"totalGrossWeight"`
|
TotalGrossWeight decimal.Decimal `json:"totalGrossWeight"`
|
||||||
TotalNetWeight decimal.Decimal `json:"totalNetWeight"`
|
TotalNetWeight decimal.Decimal `json:"totalNetWeight"`
|
||||||
GenPayableFlag bool `json:"genPayableFlag"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info @TITLE 详情
|
// Info @TITLE 详情
|
||||||
|
|||||||
Reference in New Issue
Block a user