1
This commit is contained in:
@@ -210,6 +210,7 @@ var (
|
|||||||
"freightDeductionPack": 1,
|
"freightDeductionPack": 1,
|
||||||
"vendorStoreName": 1,
|
"vendorStoreName": 1,
|
||||||
"boxFee": 1,
|
"boxFee": 1,
|
||||||
|
"address": 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
WatchVendorStoreTimeList = []string{
|
WatchVendorStoreTimeList = []string{
|
||||||
@@ -1792,6 +1793,21 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
|||||||
// }
|
// }
|
||||||
syncStatus |= model.SyncFlagStoreName
|
syncStatus |= model.SyncFlagStoreName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 增加门店地址修改同步
|
||||||
|
storeDetail, err := dao.GetStoreBaseByVendorStoreID(storeMap.VendorStoreID, storeMap.VendorID)
|
||||||
|
if err != nil || storeDetail == nil {
|
||||||
|
return 0, fmt.Errorf("基础门店信息异常,请联系管理员")
|
||||||
|
}
|
||||||
|
if storeDetail != nil && payload["address"].(string) != storeDetail.Address {
|
||||||
|
// 修改门店地址
|
||||||
|
storeDetail.Address = payload["address"].(string)
|
||||||
|
dao.UpdateEntity(db, storeDetail, "Address")
|
||||||
|
// 添加同步
|
||||||
|
valid["address"] = payload["address"].(string)
|
||||||
|
syncStatus |= model.SyncFlagStoreName
|
||||||
|
}
|
||||||
|
|
||||||
//增加同步到抖店厂商的同步标志
|
//增加同步到抖店厂商的同步标志
|
||||||
DDFlag := false
|
DDFlag := false
|
||||||
errList := errlist.ErrList{}
|
errList := errlist.ErrList{}
|
||||||
@@ -1886,6 +1902,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dao.Commit(db, txDB)
|
dao.Commit(db, txDB)
|
||||||
|
|
||||||
if isStoreMapNeedSync(vendorID, valid) {
|
if isStoreMapNeedSync(vendorID, valid) {
|
||||||
_, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName)
|
_, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user