|
@@ -1000,6 +1000,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD |
|
|
|
|
|
|
|
|
titleList = []string{"学校名称", "预定总费用", "退款总计"} |
|
|
titleList = []string{"学校名称", "预定总费用", "退款总计"} |
|
|
xlsx.SetSheetRow("Sheet1", "A1", &titleList) |
|
|
xlsx.SetSheetRow("Sheet1", "A1", &titleList) |
|
|
|
|
|
j := 2 //表头被第一行用了,只能从第二行开始 |
|
|
for _, v := range m { |
|
|
for _, v := range m { |
|
|
var income, refund string |
|
|
var income, refund string |
|
|
//统计收入 |
|
|
//统计收入 |
|
@@ -1037,7 +1038,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD |
|
|
refund = mapArr2[0]["total"] |
|
|
refund = mapArr2[0]["total"] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
j := 2 //表头被第一行用了,只能从第二行开始 |
|
|
|
|
|
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{v.Name, income, refund}) |
|
|
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{v.Name, income, refund}) |
|
|
j++ |
|
|
j++ |
|
|
} |
|
|
} |
|
|