From edac266c422f572e45eaee347c5602b01c54d6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 12 Feb 2025 14:28:41 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sku.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index e7b095f64..e91759336 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1287,6 +1287,7 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n } } + globals.SugarLogger.Debugf("------jdCategoryId := %s", jdCategoryId) if payload["jdsCategoryID"] != nil { value, ok := payload["jdCategoryID"].(string) if ok && value != "" && value != "0" { @@ -1386,6 +1387,7 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n updateOrCreate(model.VendorIDJD, nameID, jdCategoryId) flag = true payload["jdCategoryID"] = jdCategoryId + globals.SugarLogger.Debugf("------jdCategoryId := %s", jdCategoryId) } if jxCategoryID != 0 && jxCategoryID != 291 { dao.ExecuteSQL(dao.GetDB(), `UPDATE sku_name SET category_id = ? WHERE id = ?`, []interface{}{jxCategoryID, nameID}...)