导出平台门店

This commit is contained in:
苏尹岚
2019-12-09 18:50:38 +08:00
parent 4ef840788b
commit f1aea16c2e

View File

@@ -2378,7 +2378,11 @@ func GetVendorStoreInfo(ctx *jxcontext.Context, vendorIDList []int, isAsync, isC
}
db := dao.GetDB()
storeDetail2, err := dao.GetStoreDetailByVendorStoreID(db, storeDetail.VendorStoreID, vendorID)
if err != nil {
return "", err
}
if storeDetail.Status != model.StoreStatusOpened {
if storeDetail2 != nil {
var storeExcel = VendorStoreExcel{
StoreID: storeDetail.ID,
VendorStoreName: storeDetail.Name,
@@ -2393,6 +2397,7 @@ func GetVendorStoreInfo(ctx *jxcontext.Context, vendorIDList []int, isAsync, isC
}
retVal = []VendorStoreExcel{storeExcel}
}
}
return retVal, err
}
taskParallel := tasksch.NewParallelTask("获取各平台未营业门店", tasksch.NewParallelConfig().SetIsContinueWhenError(isContinueWhenError), ctx, taskFunc, storeIDs)