dengbiao преди 4 месеца
родител
ревизия
0f805a8351
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. +5
    -0
      app/admin/svc/svc_data_statisstics.go

+ 5
- 0
app/admin/svc/svc_data_statisstics.go Целия файл

@@ -1192,7 +1192,11 @@ 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)
}
@@ -1215,6 +1219,7 @@ 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 {


Зареждане…
Отказ
Запис