DengBiao před 1 rokem
rodič
revize
e3a6eb3674
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. +6
    -0
      app/admin/svc/svc_data_statisstics.go

+ 6
- 0
app/admin/svc/svc_data_statisstics.go Zobrazit soubor

@@ -271,6 +271,9 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta
data[vv.Enterprise.Name][vv.UserIdentity.Name]["编号"] = map[string]float64{
"id": float64(vv.UserIdentity.Id),
}
if data[vv.Enterprise.Name][vv.UserIdentity.Name]["合计"] == nil {
data[vv.Enterprise.Name][vv.UserIdentity.Name]["合计"] = make(map[string]float64)
}
data[vv.Enterprise.Name][vv.UserIdentity.Name][mealZh]["num"]++
data[vv.Enterprise.Name][vv.UserIdentity.Name][mealZh]["amount"] += utils.StrToFloat64(vv.SelfSupportForSchoolOrd.TradeAmount)
data[vv.Enterprise.Name][vv.UserIdentity.Name]["合计"]["num"]++
@@ -357,6 +360,9 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta
if data[vv.Enterprise.Name][shopName][mealZh] == nil {
data[vv.Enterprise.Name][shopName][mealZh] = make(map[string]float64)
}
if data[vv.Enterprise.Name][shopName]["合计"] == nil {
data[vv.Enterprise.Name][shopName]["合计"] = make(map[string]float64)
}
data[vv.Enterprise.Name][shopName][mealZh]["num"]++
data[vv.Enterprise.Name][shopName][mealZh]["amount"] += utils.StrToFloat64(vv.SelfSupportForSchoolOrd.TradeAmount)
data[vv.Enterprise.Name][shopName]["合计"]["num"]++


Načítá se…
Zrušit
Uložit