创建标品测试

This commit is contained in:
苏尹岚
2020-04-22 13:55:53 +08:00
parent 400e02770f
commit c00d25e785
2 changed files with 2 additions and 4 deletions

View File

@@ -1874,7 +1874,9 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader, categoryID
return retVal, err
}
skuNames, _ := dao.GetSkuNames(db, nil, []string{*v.Upc}, "", false)
fmt.Println(utils.Format4Output(skuNames, false))
if len(skuNames) > 0 {
fmt.Println("test111111111111111111111111111111111111111")
retVal = []*CreateUpcSkuByExcelErr{buildCreateUpcSkuByExcelErr(v, "商品在京西库中已存在!")}
return retVal, err
}