From e99cc5acf40323379cf538bc5f08228a42aa2bee Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 09 四月 2024 17:52:26 +0800
Subject: [PATCH] 产量登记表2

---
 controllers/raw_silk_standard.go |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/controllers/raw_silk_standard.go b/controllers/raw_silk_standard.go
index 7659034..10c3b1d 100644
--- a/controllers/raw_silk_standard.go
+++ b/controllers/raw_silk_standard.go
@@ -188,3 +188,26 @@
 	}
 	util.ResponseFormat(c, code.Success, "淇濆瓨鎴愬姛")
 }
+
+// GetRankStandardGrade
+//
+//	@Tags		绯荤粺璁剧疆/鐢熶笣瀹氱骇鏍囧噯
+//	@Summary	鑾峰彇鐢熶笣绛夌骇
+//	@Produce	application/json
+//	@Success	200	{object}	util.Response{data=map[string]string}	"鎴愬姛"
+//	@Router		/api-jl/v1/system/getRankStandardGrade [get]
+func (slf RawSilkStandardController) GetRankStandardGrade(c *gin.Context) {
+	standards, err := models.NewRawSilkRankStandardSearch().FindNotTotal()
+	if err != nil {
+		util.ResponseFormat(c, code.RequestParamError, "鑾峰彇鐢熶笣绛夌骇澶辫触")
+		return
+	}
+	m := make(map[string]string)
+	m["閲庣氦"] = "閲庣氦"
+	m["澶ч噹"] = "澶ч噹"
+	m["鐗归噹"] = "鐗归噹"
+	for _, standard := range standards {
+		m[standard.RankName] = standard.RankName
+	}
+	util.ResponseFormat(c, code.Success, m)
+}

--
Gitblit v1.8.0