This commit is contained in:
苏尹岚
2020-08-25 11:26:07 +08:00
parent 811e131ee5
commit 9739d0d2bb

View File

@@ -138,12 +138,14 @@ func SyncStoreCategories(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo
} }
task.AddFailedList(failedList) task.AddFailedList(failedList)
} }
fmt.Println("2222222222222222222222222222222222222222222222")
if err == nil { if err == nil {
if vendorID == model.VendorIDMTWM { if vendorID == model.VendorIDMTWM {
refutil.SetObjFieldByName(storeCatMap, idFieldName, catInfo.VendorCatID) refutil.SetObjFieldByName(storeCatMap, idFieldName, catInfo.VendorCatID)
} else { } else {
refutil.SetObjFieldByName(storeCatMap, idFieldName, utils.Str2Int64WithDefault(catInfo.VendorCatID, 0)) refutil.SetObjFieldByName(storeCatMap, idFieldName, utils.Str2Int64WithDefault(catInfo.VendorCatID, 0))
} }
fmt.Println("11111111111111111111111111111111111111111111111111111111111")
_, err = dao.UpdateEntity(db, storeCatMap, updateFields...) _, err = dao.UpdateEntity(db, storeCatMap, updateFields...)
} }
return nil, err return nil, err