刷新饿鲜达商品分类优化

This commit is contained in:
苏尹岚
2020-02-21 14:31:43 +08:00
parent 4b5a6aeaa7
commit aa8f84b94e

View File

@@ -1627,20 +1627,11 @@ func UpdateExianDaSkuCategory(ctx *jxcontext.Context, isAsync, isContinueWhenErr
"%" + sku.CustomCatName + "%",
}
err = dao.GetRow(db, skuCat, sql, sqlParams)
dao.Begin(db)
defer func() {
if r := recover(); r != nil {
dao.Rollback(db)
panic(r)
}
}()
v.CategoryID = skuCat.ID
_, err = dao.UpdateEntity(db, v, "CategoryID")
if err != nil {
dao.Rollback(db)
return retVal, err
}
dao.Commit(db)
return retVal, err
}, skus)
tasksch.HandleTask(task, nil, true).Run()