From 547033793c42538123775cf862b0cff46f79d661 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 11 四月 2024 10:17:28 +0800
Subject: [PATCH] 获取位置产品信息
---
proto/product_inventory/server.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/proto/product_inventory/server.go b/proto/product_inventory/server.go
index faafff7..1113c11 100644
--- a/proto/product_inventory/server.go
+++ b/proto/product_inventory/server.go
@@ -473,7 +473,7 @@
return nil, errors.New("鍙傛暟涓嶈兘涓虹┖")
}
result := new(GetOutputOperationInfoResponse)
- first, err := models.NewOperationSearch().SetSourceNumber(req.Number).SetStatus(constvar.OperationStatus_Finish).First()
+ first, err := models.NewOperationSearch().SetSourceNumber(req.Number).SetBaseOperationType(constvar.BaseOperationTypeOutgoing).SetStatus(constvar.OperationStatus_Finish).First()
if err != nil {
if err == gorm.ErrRecordNotFound {
return result, nil
--
Gitblit v1.8.0