From c6800856fd6b01e90229a39e28fa8a3a53bf4d8c Mon Sep 17 00:00:00 2001 From: zhangxin Date: Mon, 14 Feb 2022 15:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E4=BF=AE=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84=E6=9D=A1=E7=A0=81=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/qm/implments/ReclinerReclst.service.impl.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/qm/implments/ReclinerReclst.service.impl.go b/services/qm/implments/ReclinerReclst.service.impl.go index 7da5a4d..a150d8d 100644 --- a/services/qm/implments/ReclinerReclst.service.impl.go +++ b/services/qm/implments/ReclinerReclst.service.impl.go @@ -135,7 +135,7 @@ func (impl *ReclinerReclstServiceImplement) InsertOne(user *models.Usertab, enti if len(orderId) < 27 { return grmi.NewBusinessError("序列订单长度错误!") } - entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27] + entity.ReclinerNr = orderId[0:19] + "9" + orderId[20:27] err = dao.InsertOne(entity) if err != nil { return err @@ -184,7 +184,7 @@ func (impl *ReclinerReclstServiceImplement) InsertSeriOne(user *models.Usertab, if len(orderId) < 27 { return grmi.NewBusinessError("序列订单长度错误!") } - entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27] + entity.ReclinerNr = orderId[0:19] + "9" + orderId[20:27] err = dao.InsertOne(entity) if err != nil { return err @@ -234,7 +234,7 @@ func (impl *ReclinerReclstServiceImplement) SelectSeriOne(user *models.Usertab, if len(orderId) < 27 { return nil, grmi.NewBusinessError("序列订单长度错误!") } - entity.ReclinerNr = orderId[0:19] + "R" + orderId[20:27] + entity.ReclinerNr = orderId[0:19] + "9" + orderId[20:27] return entity, nil }