1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user