From ed3d45b189f102249eabd0cb5a0299bc66b0dea6 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 18 十二月 2023 21:04:12 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS --- proto/product_inventory/server.go | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/proto/product_inventory/server.go b/proto/product_inventory/server.go index 5abf83f..f64413b 100644 --- a/proto/product_inventory/server.go +++ b/proto/product_inventory/server.go @@ -156,7 +156,7 @@ } operation.OperationTypeName = operationType.Name operation.OperationTypeId = operationType.Id - location, err := models.NewLocationSearch().SetJointNames([]string{warehouse.Code}).First() + location, err := models.NewLocationSearch().SetID(warehouse.LocationId).First() if err != nil { return nil, err } @@ -167,6 +167,10 @@ } operation.ToLocationID = first.Id operation.BaseOperationType = constvar.BaseOperationTypeOutgoing + operation.ReceiverName = req.Addressee + operation.ReceiverPhone = req.Phone + operation.ReceiverAddr = req.Address + operation.Source = req.Source if req.DeliverType == 1 { for _, product := range req.ProductList { var detail models.OperationDetails @@ -184,7 +188,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