From 7541b55603c480a67d88244f78cb919a884f9111 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:16:32 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sku.go | 1 + business/model/dao/dao_bz.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 464a256e5..e7b095f64 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1385,6 +1385,7 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n if jdCategoryId != "" && jdCategoryId != "0" { updateOrCreate(model.VendorIDJD, nameID, jdCategoryId) flag = true + payload["jdCategoryID"] = jdCategoryId } if jxCategoryID != 0 && jxCategoryID != 291 { dao.ExecuteSQL(dao.GetDB(), `UPDATE sku_name SET category_id = ? WHERE id = ?`, []interface{}{jxCategoryID, nameID}...) diff --git a/business/model/dao/dao_bz.go b/business/model/dao/dao_bz.go index 091e81131..3c6fc8fd2 100644 --- a/business/model/dao/dao_bz.go +++ b/business/model/dao/dao_bz.go @@ -54,10 +54,7 @@ func UpdateEntityByKV(db *DaoDB, item interface{}, kvs map[string]interface{}, c qs = qs.Filter(k, v) } } - globals.SugarLogger.Debugf("-------item %s", utils.Format4Output(item, false)) - globals.SugarLogger.Debugf("-------kvs %s", utils.Format4Output(kvs, false)) num, err = qs.Update(kvs) - globals.SugarLogger.Debugf("-------err %v", err) if err != nil && !IsDuplicateError(err) { globals.SugarLogger.Errorf("UpdateEntityByKV %s failed with error:%v", reflect.TypeOf(item).Name(), err) }