LEIYI 5 months ago
parent
commit
d6adeaa755
1 changed files with 1 additions and 1 deletions
  1. 1 1
      OASystem/OASystem.Api/Controllers/StatisticsController.cs

+ 1 - 1
OASystem/OASystem.Api/Controllers/StatisticsController.cs

@@ -2730,6 +2730,7 @@ FROM
             WorkbookDesigner designer = new WorkbookDesigner();
             designer.Workbook = new Workbook(AppSettingsHelper.Get("ExcelBasePath") + "Template/营业额团组报表模板.xls");
             designer.SetDataSource(dt);
+            designer.SetDataSource("Total", view.Sum(x => x.GroupSales));
             designer.Workbook.Worksheets[0].Name = "营业额团组报表";
 
             designer.Process();
@@ -2738,7 +2739,6 @@ FROM
             designer.Workbook.Save(AppSettingsHelper.Get("ExcelBasePath") + fileName);
             string rst = AppSettingsHelper.Get("ExcelBaseUrl") + AppSettingsHelper.Get("ExcelFtpPath") + fileName;
             return Ok(JsonView(true, "操作成功", new { url = rst }));
-
         }
 
         /// <summary>