From 4885cc79aae34a011602807a41051e36e4b54e4f Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 27 十一月 2023 16:50:32 +0800
Subject: [PATCH] grpc创建采购单修改

---
 docs/swagger.yaml            |    3 +++
 docs/docs.go                 |    4 ++++
 proto/purchase_wms/server.go |    4 ++--
 docs/swagger.json            |    4 ++++
 4 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 750d564..55a08e3 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -3713,6 +3713,10 @@
                     "description": "閲囪喘缂栧彿",
                     "type": "string"
                 },
+                "orderSource": {
+                    "description": "鍗曟嵁鏉ユ簮",
+                    "type": "string"
+                },
                 "phone": {
                     "description": "鑱旂郴浜虹數璇�",
                     "type": "string"
diff --git a/docs/swagger.json b/docs/swagger.json
index d8aaa68..72dae67 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -3704,6 +3704,10 @@
                     "description": "閲囪喘缂栧彿",
                     "type": "string"
                 },
+                "orderSource": {
+                    "description": "鍗曟嵁鏉ユ簮",
+                    "type": "string"
+                },
                 "phone": {
                     "description": "鑱旂郴浜虹數璇�",
                     "type": "string"
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 6334613..4a26eb6 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -565,6 +565,9 @@
       number:
         description: 閲囪喘缂栧彿
         type: string
+      orderSource:
+        description: 鍗曟嵁鏉ユ簮
+        type: string
       phone:
         description: 鑱旂郴浜虹數璇�
         type: string
diff --git a/proto/purchase_wms/server.go b/proto/purchase_wms/server.go
index 235def6..089b7cd 100644
--- a/proto/purchase_wms/server.go
+++ b/proto/purchase_wms/server.go
@@ -51,8 +51,8 @@
 }
 
 func (s *Server) CreatePurchaseByWms(ctx context.Context, req *CreatePurchaseByWmsRequest) (*CreatePurchaseByWmsResponse, error) {
-	if req.SupplierId == 0 || req.ProductId == "" {
-		return nil, errors.New("渚涘簲鍟唅d鎴栦骇鍝乮d涓虹┖")
+	if req.ProductId == "" {
+		return nil, errors.New("浜у搧id涓虹┖")
 	}
 	var pt purchase.PurchaseType
 	err := global.GVA_DB.Model(&purchase.PurchaseType{}).First(&pt).Error

--
Gitblit v1.8.0