From 16e06252079d36be7686a3d006c8b73565973c68 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 18 十二月 2023 21:04:08 +0800
Subject: [PATCH] 全文搜索支持时间查询

---
 proto/product_inventory/server.go |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/proto/product_inventory/server.go b/proto/product_inventory/server.go
index 5abf83f..1b624b7 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,9 @@
 	}
 	operation.ToLocationID = first.Id
 	operation.BaseOperationType = constvar.BaseOperationTypeOutgoing
+	operation.ReceiverName = req.Addressee
+	operation.ReceiverPhone = req.Phone
+	operation.ReceiverAddr = req.Address
 	if req.DeliverType == 1 {
 		for _, product := range req.ProductList {
 			var detail models.OperationDetails

--
Gitblit v1.8.0