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