From bb8de3675c1b87adf1cad8aba2458c081e63630e Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 10 Jul 2026 14:08:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E5=BA=94?= =?UTF-8?q?=E4=BB=98=E5=92=8C=E5=BA=94=E6=94=B6=E5=88=97=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在ReplyPayableList中添加Count字段用于应付统计 - 新增PayableCount结构体包含金额统计功能 - 在ReplyReceivableList中添加Count字段用于应收统计 - 新增ReceivableCount结构体包含应收、已收和未收金额统计 - 扩展数据返回结构以支持财务统计数据展示 --- erp/payable.go | 4 ++++ erp/receivable.go | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/erp/payable.go b/erp/payable.go index 79c1e37..f7c635b 100644 --- a/erp/payable.go +++ b/erp/payable.go @@ -29,6 +29,10 @@ type PayableSearch struct { type ReplyPayableList struct { List []PayableItem `json:"list"` Total int64 `json:"total"` + Count PayableCount `json:"count"` +} +type PayableCount struct { + Amount decimal.Decimal `json:"amount"` } type PayableItem struct { Id int64 `json:"id"` diff --git a/erp/receivable.go b/erp/receivable.go index cba09aa..2fd5dad 100644 --- a/erp/receivable.go +++ b/erp/receivable.go @@ -28,6 +28,12 @@ type ReceivableSearch struct { type ReplyReceivableList struct { List []ReceivableItem `json:"list"` Total int64 `json:"total"` + Count ReceivableCount `json:"count"` +} +type ReceivableCount struct { + ReceivableAmount decimal.Decimal `json:"receivableAmount"` + ReceivedAmount decimal.Decimal `json:"receivedAmount"` + OutstandingAmount decimal.Decimal `json:"outstandingAmount"` } type ReceivableItem struct { Id int64 `json:"id"`