修改-把京西有,平台无且没有待创建标记的商品加上待创建标记
This commit is contained in:
@@ -585,14 +585,8 @@ func AddCreateFlagForJxStoreSku(ctx *jxcontext.Context, parentTask tasksch.ITask
|
|||||||
storeSkuList, err := dao.GetStoresSkusInfo(db, []int{storeID}, skuIDList)
|
storeSkuList, err := dao.GetStoresSkusInfo(db, []int{storeID}, skuIDList)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
for _, skuBind := range storeSkuList {
|
for _, skuBind := range storeSkuList {
|
||||||
if vendorID == model.VendorIDMTWM {
|
fieldStatus := dao.GetSyncStatusStructField(model.VendorNames[vendorID])
|
||||||
skuBind.MtwmSyncStatus |= model.SyncFlagNewMask
|
dao.UpdateEntityLogicallyAndUpdateSyncStatus(db, skuBind, nil, ctx.GetUserName(), nil, fieldStatus, model.SyncFlagNewMask)
|
||||||
} else if vendorID == model.VendorIDEBAI {
|
|
||||||
skuBind.EbaiSyncStatus |= model.SyncFlagNewMask
|
|
||||||
} else if vendorID == model.VendorIDJD {
|
|
||||||
skuBind.JdSyncStatus |= model.SyncFlagNewMask
|
|
||||||
}
|
|
||||||
dao.UpdateEntity(db, skuBind)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user