Browse Source

update

master
dengbiao 4 months ago
parent
commit
2e6cca8c42
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      app/admin/svc/svc_data_statisstics.go

+ 0
- 5
app/admin/svc/svc_data_statisstics.go View File

@@ -1192,11 +1192,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
centralKitchenForSchoolUserWithDayDb.Set(0) centralKitchenForSchoolUserWithDayDb.Set(0)
var list = map[string]map[string]map[string]map[string]int64{} var list = map[string]map[string]map[string]map[string]int64{}
var xlsFileName, xlsDownloadPath []string var xlsFileName, xlsDownloadPath []string
var alreadyOrd = map[string]bool{}
for _, v := range m { for _, v := range m {
if alreadyOrd[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo] == true {
continue
}
if list[v.Enterprise.Name] == nil { if list[v.Enterprise.Name] == nil {
list[v.Enterprise.Name] = make(map[string]map[string]map[string]int64) 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] list[v.Enterprise.Name][v.Grade.Name][v.Class.Name]["dinner"] += nativeResultsMap[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo][enum.CentralKitchenForSchoolUserWithDayKindForDinner]
nativeResultsMap[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo][enum.CentralKitchenForSchoolUserWithDayKindForDinner] = 0 nativeResultsMap[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo][enum.CentralKitchenForSchoolUserWithDayKindForDinner] = 0
} }
alreadyOrd[v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo] = true
} }


for k1, v1 := range list { for k1, v1 := range list {


Loading…
Cancel
Save