From 4cf5fdccffdeb7a47141d05deb4e88462c651512 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 21 Aug 2026 17:24:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(accounting):=20=E6=9B=B4=E6=96=B0=E4=BC=9A?= =?UTF-8?q?=E8=AE=A1=E6=A8=A1=E5=9D=97=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81=E5=BA=94=E4=BB=98=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E8=B7=9F=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 RequestAccountingList 中添加 HasGenPayable 字段用于标识是否生成应付 - 将 ReplyAccountingList 中的 GenPayableFlag 字段替换为 HasGenPayable 整型字段 - 在 ReplyAccountingInfo 结构体中同步添加 HasGenPayable 状态字段 - 移除已废弃的 GenPayableFlag 布尔类型字段 - 统一应付生成状态的数据类型为 int64 格式便于后续扩展 --- erp/accounting.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erp/accounting.go b/erp/accounting.go index 0abf2f8..da10969 100644 --- a/erp/accounting.go +++ b/erp/accounting.go @@ -29,6 +29,7 @@ type AccountingSearch struct { StaffIds []int64 // 业务员 AccountingIds []int64 // 做账id BanFlag int64 // 是否有效 + HasGenPayable int64 // 是否生成应付 } type ReplyAccountingList struct { @@ -48,7 +49,7 @@ type AccountingItem struct { WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` BanFlag int64 `json:"banFlag"` - GenPayableFlag bool `json:"genPayableFlag"` + HasGenPayable int64 `json:"hasGenPayable"` TotalBoxCount int64 `json:"totalBoxCount"` TotalAmount decimal.Decimal `json:"totalAmount"` TotalVolume decimal.Decimal `json:"totalVolume"` @@ -139,6 +140,7 @@ type ReplyAccountingInfo struct { WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` BanFlag int64 `json:"banFlag"` + HasGenPayable int64 `json:"hasGenPayable"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` TotalBoxCount int64 `json:"totalBoxCount"` @@ -146,7 +148,6 @@ type ReplyAccountingInfo struct { TotalVolume decimal.Decimal `json:"totalVolume"` TotalGrossWeight decimal.Decimal `json:"totalGrossWeight"` TotalNetWeight decimal.Decimal `json:"totalNetWeight"` - GenPayableFlag bool `json:"genPayableFlag"` } // Info @TITLE 详情