From 79f6a0752281cb5fd343bd8d20443522b0caac0b Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 16 Feb 2024 11:39:08 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index bcc8cf0..a04ee08 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -986,7 +986,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD xlsx.SaveAs("./static" + downloadPath) break case 3: - xlsx := excelize.NewFile() //学校预定统计表 fileName = "学校预定统计表_" + utils.Int64ToStr(now.UnixMilli()) + ".zip" downloadPath = "/export/central_kitchen_for_school/" + fileName @@ -1064,7 +1063,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD println("<<<>>>>Error:::", err.Error()) return } - time.Sleep(20 * time.Millisecond) // 20毫秒 + time.Sleep(2 * time.Millisecond) // 2毫秒 if v.CentralKitchenForSchoolPackageOrdForReserve.Kind == enum.CentralKitchenForSchoolUserWithDayKindForBreakfast { list[v.Enterprise.Name][v.Grade.Name][v.Class.Name]["breakfast"] += count @@ -1078,6 +1077,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD } for k1, v1 := range list { + xlsx := excelize.NewFile() tmpFileName := k1 + "学校预定统计表_" + utils.Int64ToStr(now.UnixMilli()) + ".xlsx" tmpDownloadPath := "./static/export/central_kitchen_for_school/" + tmpFileName startDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local) @@ -1199,7 +1199,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD } break case 4: - xlsx := excelize.NewFile() //班级明细表 fileName = "班级明细表_" + utils.Int64ToStr(now.UnixMilli()) + ".zip" downloadPath = "/export/central_kitchen_for_school/" + fileName @@ -1296,6 +1295,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD } for k1, v1 := range list { + xlsx := excelize.NewFile() tmpFileName := k1 + "班级明细_" + utils.Int64ToStr(now.UnixMilli()) + ".xlsx" tmpDownloadPath := "./static/export/central_kitchen_for_school/" + tmpFileName startDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local)