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