From 0a2dac26ffa53737cad4c2980168eedd4c5919a3 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 27 十二月 2023 16:06:45 +0800 Subject: [PATCH] 字段修改 --- proto/product_inventory/server.go | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/proto/product_inventory/server.go b/proto/product_inventory/server.go index bb375e1..b564f8d 100644 --- a/proto/product_inventory/server.go +++ b/proto/product_inventory/server.go @@ -101,7 +101,7 @@ products := make([]*ProductInfo, 0) for _, material := range materials { var p ProductInfo - p.Id = material.ID + p.Number = material.ID p.Name = material.Name for _, detail := range details { if material.ID == detail.ProductId { @@ -167,6 +167,12 @@ } operation.ToLocationID = first.Id operation.BaseOperationType = constvar.BaseOperationTypeOutgoing + operation.ReceiverName = req.Addressee + operation.ReceiverPhone = req.Phone + operation.ReceiverAddr = req.Address + operation.Source = req.Source + operation.CompanyID = int(req.ClientId) + operation.CompanyName = req.ClientName if req.DeliverType == 1 { for _, product := range req.ProductList { var detail models.OperationDetails @@ -184,7 +190,6 @@ detail.ProductId = product.Id amount, _ := decimal.NewFromString(product.Amount) detail.Amount = amount - details = append(details, &detail) newOperation.Details = append(newOperation.Details, &detail) operations = append(operations, &newOperation) } -- Gitblit v1.8.0