From 2e6cca8c427b4987d627031e6cd1dafd987cf522 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 4 Jul 2024 11:28:41 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index 375543f..dfda392 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -1192,11 +1192,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD centralKitchenForSchoolUserWithDayDb.Set(0) var list = map[string]map[string]map[string]map[string]int64{} var xlsFileName, xlsDownloadPath []string - var alreadyOrd = map[string]bool{} for _, v := range m { - if alreadyOrd[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo] == true { - continue - } if list[v.Enterprise.Name] == nil { list[v.Enterprise.Name] = make(map[string]map[string]map[string]int64) } @@ -1219,7 +1215,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD list[v.Enterprise.Name][v.Grade.Name][v.Class.Name]["dinner"] += nativeResultsMap[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo][enum.CentralKitchenForSchoolUserWithDayKindForDinner] nativeResultsMap[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo][enum.CentralKitchenForSchoolUserWithDayKindForDinner] = 0 } - alreadyOrd[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo] = true } for k1, v1 := range list {