Browse Source

1

add_mode
DengBiao 1 year ago
parent
commit
e3a6eb3674
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      app/admin/svc/svc_data_statisstics.go

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

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


Loading…
Cancel
Save