From 28b3b0780ad2be3535039c352d1d4bf9fe3220a9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 6 Nov 2023 19:23:13 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 13 ++++++------- .../央厨学校(就餐数据统计表).xlsx | Bin 9091 -> 9092 bytes 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index b9df379..0112d02 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -1828,16 +1828,16 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD } } - xls.SetSheetRow("", "A1", &titleList) - sheetIndex := 2 //第一个表是模板表 - xls.NewSheet("sheet1") //1、新建表格 - xls.CopySheet(1, sheetIndex) + //xls.SetSheetRow("", "A1", &titleList) + //sheetIndex := 2 //第一个表是模板表 + //xls.NewSheet("sheet1") //1、新建表格 + //xls.CopySheet(1, sheetIndex) j := 4 //表头前三行被占用了,只能从第四行开始 for _, date := range dates { for kk, v := range list { if date == kk { - xls.SetSheetRow("sheet1", "A"+strconv.Itoa(j), &[]interface{}{kk, + xls.SetSheetRow("template", "A"+strconv.Itoa(j), &[]interface{}{kk, v["早餐"]["count"], v["早餐"]["sum"], v["午餐"]["count"], v["午餐"]["sum"], v["晚餐"]["count"], v["晚餐"]["sum"], @@ -1845,10 +1845,9 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD }) j++ } - sheetIndex++ } } - xls.DeleteSheet("template") //删除模板表 + //xls.DeleteSheet("template") //删除模板表 //将文件保存至服务器 xls.SaveAs("./static" + downloadPath) break diff --git a/static/template/央厨学校(就餐数据统计表).xlsx b/static/template/央厨学校(就餐数据统计表).xlsx index 00e6bae8c59a06511e1a6fe3cc7ee7ad6d36c3b7..96a218ccc04431e2cbd7ec9aef6ae9ebf26faad2 100644 GIT binary patch delta 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