From 7d06c6472f1acea6b2e49e7b8837bf555e94e219 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 07 五月 2024 16:21:06 +0800 Subject: [PATCH] fox --- controllers/yield_register_controller.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/controllers/yield_register_controller.go b/controllers/yield_register_controller.go index f7c64cb..8eca9d8 100644 --- a/controllers/yield_register_controller.go +++ b/controllers/yield_register_controller.go @@ -70,6 +70,11 @@ } } else { //淇濆瓨 + count, _ := models.NewYieldRegisterSearch().SetNumber(yield.Number).Count() + if count > 0 { + util.ResponseFormat(c, code.RequestParamError, "缂栫爜宸插瓨鍦�") + return + } err = models.NewYieldRegisterSearch().Create(&yield) if err != nil { util.ResponseFormat(c, code.RequestParamError, "淇濆瓨澶辫触") -- Gitblit v1.8.0