From 0fe9cf3173776fa4539a0719d45fc3fff3849f4c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 27 十一月 2023 14:35:18 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/SRM

---
 api/v1/test/supplier.go |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/api/v1/test/supplier.go b/api/v1/test/supplier.go
index f7e30b5..674d309 100644
--- a/api/v1/test/supplier.go
+++ b/api/v1/test/supplier.go
@@ -151,6 +151,29 @@
 	}
 }
 
+// GetSupplierByNumber 鐢ㄧ紪鐮佹煡璇upplier
+// @Tags Supplier
+// @Summary 鐢ㄧ紪鐮佹煡璇upplier
+// @Security ApiKeyAuth
+// @accept application/json
+// @Produce application/json
+// @Param     number  path string true  "渚涘簲鍟嗙紪鐮�"
+// @Success 200 {string} string "{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}"
+// @Router /s/getSupplierByNumber/{number} [get]
+func (sApi *SupplierApi) GetSupplierByNumber(c *gin.Context) {
+	number := c.Param("number")
+	if number == "" {
+		response.FailWithMessage("缂栫爜鍙傛暟涓嶈兘涓虹┖", c)
+		return
+	}
+	if res, err := sService.GetSupplierByNumber(number); err != nil {
+		global.GVA_LOG.Error("鏌ヨ澶辫触!", zap.Error(err))
+		response.FailWithMessage("鏌ヨ澶辫触", c)
+	} else {
+		response.OkWithData(gin.H{"res": res}, c)
+	}
+}
+
 // GetSupplierList 鍒嗛〉鑾峰彇Supplier鍒楄〃
 // @Tags Supplier
 // @Summary 鍒嗛〉鑾峰彇Supplier鍒楄〃

--
Gitblit v1.8.0