From 1719f3668522fefac49f1082d8367bb4167794f7 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Wed, 8 Dec 2021 17:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9CCodeLength=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E6=98=A0=E5=B0=84=E4=B8=BA=E5=8F=AF?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/base/implments/ArtCheckRule.service.impl.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/base/implments/ArtCheckRule.service.impl.go b/services/base/implments/ArtCheckRule.service.impl.go index 02c0857..5ba343f 100644 --- a/services/base/implments/ArtCheckRule.service.impl.go +++ b/services/base/implments/ArtCheckRule.service.impl.go @@ -114,6 +114,9 @@ func (impl *ArtCheckRuleServiceImplement) InsertOne(user *global.User, entity *m if recordAttribute == nil { return grmi.NewBusinessError("不存在指定零件属性!") } + if entity.CodeLength == "" { + entity.CodeLength = "可变" + } err = dao.InsertOne(entity) if err != nil { return err @@ -198,6 +201,9 @@ func (impl *ArtCheckRuleServiceImplement) UpdateOne(user *global.User, entity *m return grmi.NewBusinessError("不存在指定零件属性") } } + if entity.CodeLength == "" { + entity.CodeLength = "可变" + } err = dao.UpdateOne(entity) if err != nil { return err