This commit is contained in:
邹宗楠
2023-09-21 15:57:11 +08:00
parent 859278b5b1
commit 479be671ca

View File

@@ -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)