|
|
|
@ -486,7 +486,7 @@ public class Ghre_CourseServices : BaseServices<Ghre_Course, Ghre_CourseDto, Ins |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<ServiceResult<string>> ExportExcel(QueryExport body, string status) |
|
|
|
|
public async Task<ServiceResult<ExcelData>> ExportExcel(QueryExport body, string status) |
|
|
|
|
{ |
|
|
|
|
QueryBody filter = new QueryBody(); |
|
|
|
|
filter.pageNum = 1; |
|
|
|
@ -531,7 +531,10 @@ public class Ghre_CourseServices : BaseServices<Ghre_Course, Ghre_CourseDto, Ins |
|
|
|
|
|
|
|
|
|
path = path + body.exportSet.TitleName + ".xlsx"; |
|
|
|
|
NPOIHelper.ExportExcel(dt, body.exportSet.TitleName, "sheet1", physicsPath + path); |
|
|
|
|
return ServiceResult<string>.OprateSuccess("导出成功", path); |
|
|
|
|
var result = new ExcelData(); |
|
|
|
|
result.filePath = path; |
|
|
|
|
result.fileName = body.exportSet.TitleName + ".xlsx"; |
|
|
|
|
return ServiceResult<ExcelData>.OprateSuccess("导出成功", result); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#region 获取公开课查询条件 |
|
|
|
|