From 0294ba02855eda74587b08f6d9bbfd8389c16fc3 Mon Sep 17 00:00:00 2001 From: louwenzhi Date: Mon, 27 Dec 2021 18:09:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=A7=E7=84=8A=E6=9C=BA?= =?UTF-8?q?=E8=BF=94=E4=BF=AE=E8=AE=A2=E5=8D=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/qm/implments/ReclinerReclst.service.impl.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/qm/implments/ReclinerReclst.service.impl.go b/services/qm/implments/ReclinerReclst.service.impl.go index 099a13b..3c70be8 100644 --- a/services/qm/implments/ReclinerReclst.service.impl.go +++ b/services/qm/implments/ReclinerReclst.service.impl.go @@ -139,6 +139,10 @@ func (impl *ReclinerReclstServiceImplement) InsertOne(user *models.Usertab, enti entity.ArtId = artId entity.RecType = model.QM_REC_TYPE entity.Status = "N" + if len(orderId) < 27{ + return grmi.NewBusinessError("序列订单长度错误!") + } + entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27] err = dao.InsertOne(entity) if err != nil { return err