获取未营业门店

This commit is contained in:
苏尹岚
2019-12-05 15:06:45 +08:00
parent 8b29246088
commit ab08935d4d
2 changed files with 5 additions and 2 deletions

View File

@@ -2306,12 +2306,14 @@ func GetVendorStoreInfo(ctx *jxcontext.Context, vendorIDList []int, isAsync, isC
if partner.IsMultiStore(vendorID) { if partner.IsMultiStore(vendorID) {
multiHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.IMultipleStoresHandler) multiHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.IMultipleStoresHandler)
storeDetail, err = multiHandler.ReadStore(ctx, storeID) storeDetail, err = multiHandler.ReadStore(ctx, storeID)
time.Sleep(time.Second / 2)
if err != nil { if err != nil {
return retVal, err return retVal, err
} }
} else { } else {
singleHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.ISingleStoreHandler) singleHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.ISingleStoreHandler)
storeDetail, err = singleHandler.ReadStore(ctx, storeID) storeDetail, err = singleHandler.ReadStore(ctx, storeID)
time.Sleep(time.Second / 4)
if err != nil { if err != nil {
return retVal, err return retVal, err
} }
@@ -2372,7 +2374,7 @@ func WriteToExcelStore(task *tasksch.SeqTask, storeListJD, storeListMT, storeLis
} }
if len(storeListMT) > 0 { if len(storeListMT) > 0 {
excelConf := &excel.Obj2ExcelSheetConfig{ excelConf := &excel.Obj2ExcelSheetConfig{
Title: "饿百平台", Title: "美团平台",
Data: storeListMT, Data: storeListMT,
CaptionList: titleListStore, CaptionList: titleListStore,
} }
@@ -2380,7 +2382,7 @@ func WriteToExcelStore(task *tasksch.SeqTask, storeListJD, storeListMT, storeLis
} }
if len(storeListEB) > 0 { if len(storeListEB) > 0 {
excelConf := &excel.Obj2ExcelSheetConfig{ excelConf := &excel.Obj2ExcelSheetConfig{
Title: "美团平台", Title: "饿百平台",
Data: storeListEB, Data: storeListEB,
CaptionList: titleListStore, CaptionList: titleListStore,
} }

View File

@@ -179,5 +179,6 @@ func GetGetStatisticsReportForAfsOrders(db *DaoDB, storeIDs []int, fromDate time
} }
func GetStatisticsReportForStoreSkusPrice(db *DaoDB, cityCodes, skuIDs []int) (err error) { func GetStatisticsReportForStoreSkusPrice(db *DaoDB, cityCodes, skuIDs []int) (err error) {
return err return err
} }