Ejemplo n.º 1
0
        /// <summary>
        /// 导出分销订单业绩
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public ActionResult OrdersExportToExcel(BrokerageOrderQuery query)
        {
            if (query.SettlementEnd.HasValue)
            {
                query.SettlementEnd = query.SettlementEnd.Value.AddDays(1);
            }
            var orderResults = DistributionApplication.GetBrokerageOrdersAll(query, true, true);

            return(ExcelView("OrdersExport", "平台分销订单明细", orderResults));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 导出分销订单业绩
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public ActionResult OrdersExportToExcel(BrokerageOrderQuery query)
        {
            query.ShopId = CurrentSellerManager.ShopId;
            if (query.SettlementEnd.HasValue)
            {
                query.SettlementEnd = query.SettlementEnd.Value.AddDays(1);
            }
            var orderResults = DistributionApplication.GetBrokerageOrdersAll(query);

            return(ExcelView("OrdersExport", "商家分销订单业绩", orderResults));
        }