获取京东门店等级
This commit is contained in:
@@ -1707,6 +1707,8 @@ func GetStoresVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, v
|
||||
DeliveryType: store.DeliveryType,
|
||||
StoreName: store.OriginalName,
|
||||
IsAutoOrder: store.IsAutoOrder,
|
||||
|
||||
JdStoreLevel: store.JdStoreLevel,
|
||||
}}
|
||||
}
|
||||
}
|
||||
@@ -1748,10 +1750,11 @@ func updateVendorStoreStatusBySnapshot(db *dao.DaoDB, curSnapshotList []*model.V
|
||||
}()
|
||||
for _, v := range storeMapList {
|
||||
if snapshot := snapshotMap[jxutils.Combine2Int(v.StoreID, v.VendorID)]; snapshot != nil &&
|
||||
(v.Status != snapshot.Status || v.DeliveryType != snapshot.DeliveryType || v.StoreName != snapshot.StoreName) {
|
||||
(v.Status != snapshot.Status || v.DeliveryType != snapshot.DeliveryType || v.StoreName != snapshot.StoreName || v.JdStoreLevel != snapshot.JdStoreLevel) {
|
||||
v.Status = snapshot.Status
|
||||
v.DeliveryType = snapshot.DeliveryType
|
||||
v.StoreName = snapshot.StoreName
|
||||
v.JdStoreLevel = snapshot.JdStoreLevel
|
||||
if _, err = dao.UpdateEntity(db, v, model.FieldStatus, "DeliveryType", "StoreName"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user