This commit is contained in:
邹宗楠
2023-06-30 15:28:45 +08:00
parent 0b2f7f3d50
commit 68a0512e6d

View File

@@ -556,6 +556,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
} else {
if sku.MergedStatus == model.SkuStatusNormal {
globals.SugarLogger.Debugf("sku := %s", utils.Format4Output(sku, false))
globals.SugarLogger.Debugf(" dao.IsVendorThingIDEmpty(sku.VendorCatID) := %s", utils.Format4Output(dao.IsVendorThingIDEmpty(sku.VendorCatID), false))
if dao.IsVendorThingIDEmpty(sku.VendorCatID) && !strings.Contains(sku.StoreName, model.ExdStoreName) && vendorID != model.VendorIDYB && vendorID != model.VendorIDDD || vendorID != model.VendorIDJDShop {
globals.SugarLogger.Warnf("syncStoreSkuNew 创建门店:%d商品:%d但没有平台分类ID", storeID, sku.SkuID)
} else if dao.IsVendorThingIDEmpty(utils.Int64ToStr(sku.VendorVendorCatID)) && vendorID == model.VendorIDJDShop {