From b9923a20b59938e59b3e57defee16a29a0c90a56 Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期五, 12 七月 2024 15:52:31 +0800 Subject: [PATCH] 产量登记表添加自动编号 --- controllers/dict.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/controllers/dict.go b/controllers/dict.go index 7155392..d2d4d8b 100644 --- a/controllers/dict.go +++ b/controllers/dict.go @@ -188,6 +188,9 @@ case constvar.CodeStandardType_Fineness: id, err = models.NewFinenessRegisterSearch().MaxAutoIncr() prefix = "XD" + case constvar.CodeStandardType_Yield: + id, err = models.NewYieldRegisterSearch().MaxAutoIncr() + prefix = "Cl" default: util.ResponseFormat(c, code.RequestParamError, "缂栫爜瑙勫垯涓嶅瓨鍦�") return -- Gitblit v1.8.0