- 监控平台门店状态时,如果平台门店是自动接单的,改为非自动接单
This commit is contained in:
@@ -1432,6 +1432,7 @@ func GetStoresVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, v
|
||||
|
||||
DeliveryType: store.DeliveryType,
|
||||
StoreName: store.OriginalName,
|
||||
IsAutoOrder: store.IsAutoOrder,
|
||||
}}
|
||||
}
|
||||
}
|
||||
@@ -1483,6 +1484,18 @@ func updateVendorStoreStatusBySnapshot(db *dao.DaoDB, curSnapshotList []*model.V
|
||||
}
|
||||
}
|
||||
dao.Commit(db)
|
||||
|
||||
utils.CallFuncAsync(func() {
|
||||
for _, v := range storeMapList {
|
||||
if snapshot := snapshotMap[jxutils.Combine2Int(v.StoreID, v.VendorID)]; snapshot != nil {
|
||||
if snapshot.IsAutoOrder == 1 {
|
||||
if handler, ok := partner.GetPurchasePlatformFromVendorID(snapshot.VendorID).(partner.IStoreHandler); ok {
|
||||
handler.EnableAutoAcceptOrder(jxcontext.AdminCtx, v.StoreID, v.VendorStoreID, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user