DengBiao 1 ano atrás
pai
commit
e3a6eb3674
1 arquivos alterados com 6 adições e 0 exclusões
  1. +6
    -0
      app/admin/svc/svc_data_statisstics.go

+ 6
- 0
app/admin/svc/svc_data_statisstics.go Ver arquivo

@@ -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"]++


Carregando…
Cancelar
Salvar