sku增加物料商品ID为string

This commit is contained in:
苏尹岚
2020-03-05 09:38:36 +08:00
parent 68955376d8
commit a8519bd7bb
2 changed files with 6 additions and 4 deletions

View File

@@ -765,9 +765,11 @@ func AddSkuName(ctx *jxcontext.Context, skuNameExt *model.SkuNameExt, userName s
dao.Rollback(db)
return nil, err
}
if err = OnCreateThing(ctx, db, nil, int64(sku.ID), model.ThingTypeSku); err != nil {
dao.Rollback(db)
return nil, err
if sku.EclpID == "" {
if err = OnCreateThing(ctx, db, nil, int64(sku.ID), model.ThingTypeSku); err != nil {
dao.Rollback(db)
return nil, err
}
}
}
for _, placeCode := range skuNameExt.Places {