From 08371f70becf10a003005b79a33fc393ba4efaf3 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期二, 10 六月 2025 11:14:06 +0800 Subject: [PATCH] feat:渠道订单导出接口实现 --- LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs index 5e4326d..3d5a3e4 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs @@ -162,6 +162,18 @@ } /// <summary> + /// 璇濊垂璁㈠崟鏌ヨ + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + [AllowAnonymous] + public async Task<QueryPhoneOrderResponse> QueryPhoneOrder(QueryPhoneOrderRequestInput input) + { + return await _lifePayService.QueryPhoneOrder(input); + } + + /// <summary> /// 鑾峰彇鐕冩皵闈㈠�� /// </summary> /// <returns></returns> @@ -459,6 +471,23 @@ } /// <summary> + /// 瀵煎嚭娓犻亾璁㈠崟Excel + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + public async Task<ActionResult> GetLifePayOrderPageExportForChannle(QueryLifePayOrderListInput input) + { + var data = await _lifePayService.GetLifePayOrderPageExportForChannle(input); + if (data.Any()) + { + var bytes = ExcelHelper.ListToByteForExcel(data, "xlsx"); + return File(bytes, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "璁㈠崟绠$悊" + ".xlsx"); + } + return Json(default); + } + + /// <summary> /// 瀵煎嚭閫�娆捐鍗旹xcel /// </summary> /// <param name="input"></param> -- Gitblit v1.9.1