From 479be671cab24fd71f27c52629ebe6208322d810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 21 Sep 2023 15:57:11 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 31ef52b58..fc6b5aa9e 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -203,6 +203,7 @@ var ( "deliveryRange": 1, "status": 1, "promoteInfo": 1, + "vendorStoreName": 1, } storeMapKeyPropertyMap = map[string]int{ @@ -1862,6 +1863,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor } }() + // 这里面包含address时会报错,所以删除 if address != "" { delete(valid, "address") } @@ -1908,6 +1910,9 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor } } dao.Commit(db, txDB) + if address != "" { + valid["address"] = address + } if isUpdateStoreNeedSync(valid) { // 同步修改门店已经配送门店 _, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName)