From 90746d11ecc8d94efc9118687d1e551c90f9a4f6 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Thu, 4 Nov 2021 09:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=86=99=E5=85=A5bom?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E4=B8=8D=E6=98=AFCarset=E7=B1=BB=E5=9E=8B=20?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=86=99=E5=85=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/me/implments/BomLst.service.impl.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/services/me/implments/BomLst.service.impl.go b/services/me/implments/BomLst.service.impl.go index d8bb879..aed2990 100644 --- a/services/me/implments/BomLst.service.impl.go +++ b/services/me/implments/BomLst.service.impl.go @@ -141,10 +141,10 @@ func (impl *BomLstServiceImplement) InsertOne(user *models.Usertab, entity *mode _ = session.Rollback() return grmi.NewBusinessError("不存在对应的物料数据") } - if article.ArtSpec1 != "CarSet" { - _ = session.Rollback() - return grmi.NewBusinessError("传递的物料不是CarSet物料ID") - } + //if article.ArtSpec1 != "CarSet" { + // _ = session.Rollback() + // return grmi.NewBusinessError("传递的物料不是CarSet物料ID") + //} article2, err := articleDao.SelectOne(entity.CmatNr) if err != nil { @@ -155,12 +155,12 @@ func (impl *BomLstServiceImplement) InsertOne(user *models.Usertab, entity *mode _ = session.Rollback() return grmi.NewBusinessError("不存在对应的物料数据") } - if article2.ArtSpec1 != "CarSet" { + if article2.ArtSpec1 == "CarSet" { _ = session.Rollback() - return grmi.NewBusinessError("传递的物料不是CarSet物料ID") + return grmi.NewBusinessError("传递的物料是CarSet物料ID") } - if entity.FmatNr == entity.CmatNr{ + if entity.FmatNr == entity.CmatNr { _ = session.Rollback() return grmi.NewBusinessError("上级和下级物料ID相同") }