From ed62403cc58722e685fe7a98cca33507307a849d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 18 Mar 2024 10:36:55 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index d7c17343f..97a3a97f2 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1873,11 +1873,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor }() // 这里面包含address时会报错,所以删除 - if address != "" { - delete(valid, "address") - } - globals.SugarLogger.Debugf("==========valid := %s", utils.Format4Output(valid, false)) - globals.SugarLogger.Debugf("==========valid2 := %s", utils.Format4Output(isStoreMapNeedSync(vendorID, valid), false)) + delete(valid, "address") // storeMap 不包含address参数 if isStoreMapNeedSync(vendorID, valid) { // 对于store vendor map,只有Status改变才需要同步到厂商 num, err = dao.UpdateEntityLogicallyAndUpdateSyncStatus(db, storeMap, valid, userName, map[string]interface{}{