From d26dfa6e20a56ff61c33a834c9e0c01548b7fe8b Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 30 Jun 2026 14:04:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E5=BA=94?= =?UTF-8?q?=E6=94=B6=E8=B4=A6=E6=AC=BE=E4=B8=9A=E5=8A=A1=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在ReplyReceivableInfo结构体中新增businessDate字段 - 该字段用于记录应收账款的业务发生日期 - 字段类型为*time.Time指针类型,支持空值处理 - JSON序列化名称为businessDate,保持与前端约定一致 --- erp/receivable.go | 1 + 1 file changed, 1 insertion(+) diff --git a/erp/receivable.go b/erp/receivable.go index 79e961b..cba09aa 100644 --- a/erp/receivable.go +++ b/erp/receivable.go @@ -72,6 +72,7 @@ func (r *receivable) Gen(ctx context.Context, shipmentId int64) (err error) { type ReplyReceivableInfo struct { Id int64 `json:"id"` ReceivableSerial string `json:"receivableSerial"` + BusinessDate *time.Time `json:"businessDate"` CustomName string `json:"customName"` InvoiceSerial string `json:"invoiceSerial"` ReceivableAmount decimal.Decimal `json:"receivableAmount"`