导出平台门店

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