- new err in SyncCategory

This commit is contained in:
gazebo
2018-09-21 17:00:28 +08:00
parent 7295c16367
commit 0623d31c71

View File

@@ -45,7 +45,8 @@ func (v *VendorSync) SyncCategory(db *dao.DaoDB, categoryID int, isForce bool, u
if categoryID > 0 {
cond[model.FieldID] = categoryID
}
if err = dao.GetEntitiesByKV(db, &cats, cond, true); err == nil {
err := dao.GetEntitiesByKV(db, &cats, cond, true)
if err == nil {
tasksch.RunTask("", func(batchItemList []interface{}, params ...interface{}) (interface{}, error) {
cat := batchItemList[0].(*model.SkuCategory)
updateFields := []string{model.FieldJdSyncStatus}