From ffb45d26ae2fb7a3ad6020da4012f41c37d0215a Mon Sep 17 00:00:00 2001
From: zhouhongjun <565221961@qq.com>
Date: Wed, 4 Jun 2025 16:42:41 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=BC=E5=87=BA=E6=96=B0?=
=?UTF-8?q?=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CheryRecurringJobOutPageController.cs | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs
index 6c17be5..e5dabbd 100644
--- a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs
+++ b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs
@@ -508,6 +508,32 @@ namespace TaskManager.Controllers
}
+
+
+ ///
+ /// 导出New
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task ExportData(RequestInputBase input)
+ {
+ var pagingParams = new PagingParams
+ {
+ PageNumber = input.pageNumber,
+ PageSize = input.pageSize,
+ SortBy = input.sortBy,
+ IsAscending = input.isAscending,
+
+ };
+
+ // 可以在这里构建表达式树过滤条件
+ //Expression> filter = null;
+
+ var pagedResult = await _repository.GetDataPagedAsync(null, pagingParams, input.Condition);
+ return await ExportFile(pagedResult.Data, Guid.NewGuid().ToString() + ".xlsx");
+ }
+
protected async Task ExportFile(ICollection dtos, string fileName)
{
var excelExporter = HttpContext.RequestServices.GetRequiredService();