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相同") }