1
This commit is contained in:
@@ -148,11 +148,10 @@ func SyncStoreCategories(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo
|
|||||||
task.AddFailedList(failedList)
|
task.AddFailedList(failedList)
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if vendorID == model.VendorIDMTWM {
|
switch vendorID {
|
||||||
|
case model.VendorIDMTWM, model.VendorIDDD, model.VendorIDTaoVegetable:
|
||||||
refutil.SetObjFieldByName(storeCatMap, idFieldName, catInfo.VendorCatID)
|
refutil.SetObjFieldByName(storeCatMap, idFieldName, catInfo.VendorCatID)
|
||||||
} else if vendorID == model.VendorIDDD {
|
default:
|
||||||
refutil.SetObjFieldByName(storeCatMap, idFieldName, catInfo.VendorCatID)
|
|
||||||
} else {
|
|
||||||
refutil.SetObjFieldByName(storeCatMap, idFieldName, utils.Str2Int64WithDefault(catInfo.VendorCatID, 0))
|
refutil.SetObjFieldByName(storeCatMap, idFieldName, utils.Str2Int64WithDefault(catInfo.VendorCatID, 0))
|
||||||
}
|
}
|
||||||
_, err = dao.UpdateEntity(db, storeCatMap, updateFields...)
|
_, err = dao.UpdateEntity(db, storeCatMap, updateFields...)
|
||||||
|
|||||||
Reference in New Issue
Block a user