- 拉取平台信息时,存储平台门店名
This commit is contained in:
@@ -1436,6 +1436,7 @@ func GetStoresVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, v
|
||||
CloseTime2: store.CloseTime2,
|
||||
|
||||
DeliveryType: store.DeliveryType,
|
||||
StoreName: store.Name,
|
||||
}}
|
||||
}
|
||||
}
|
||||
@@ -1481,8 +1482,8 @@ func updateVendorStoreStatusBySnapshot(db *dao.DaoDB, curSnapshotList []*model.V
|
||||
(v.Status != snapshot.Status || v.DeliveryType != snapshot.DeliveryType) {
|
||||
v.Status = snapshot.Status
|
||||
v.DeliveryType = snapshot.DeliveryType
|
||||
v.LastOperator = model.AdminName
|
||||
if _, err = dao.UpdateEntity(db, v, model.FieldLastOperator, model.FieldUpdatedAt, model.FieldStatus, "DeliveryType"); err != nil {
|
||||
v.StoreName = snapshot.StoreName
|
||||
if _, err = dao.UpdateEntity(db, v, model.FieldStatus, "DeliveryType", "StoreName"); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user