|
@@ -659,7 +659,8 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta |
|
|
totalData[k2]["amount"] = sumAmount |
|
|
totalData[k2]["amount"] = sumAmount |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
xlsx.NewSheet("所有档口") |
|
|
|
|
|
|
|
|
//xlsx.NewSheet("所有档口") |
|
|
|
|
|
xlsx.SetSheetName("Sheet1", "所有档口") |
|
|
titleList = []string{" 设 备 分 餐 数 据 统 计 表 "} |
|
|
titleList = []string{" 设 备 分 餐 数 据 统 计 表 "} |
|
|
xlsx.SetSheetRow("所有档口", "A1", &titleList) |
|
|
xlsx.SetSheetRow("所有档口", "A1", &titleList) |
|
|
titleList = []string{"名 称", "消费笔数", "消费金额"} |
|
|
titleList = []string{"名 称", "消费笔数", "消费金额"} |
|
@@ -683,7 +684,7 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta |
|
|
} |
|
|
} |
|
|
xlsx.SetSheetRow("所有档口", "A"+strconv.Itoa(j), &[]interface{}{"合计", totalNum, totalAmount}) |
|
|
xlsx.SetSheetRow("所有档口", "A"+strconv.Itoa(j), &[]interface{}{"合计", totalNum, totalAmount}) |
|
|
|
|
|
|
|
|
xlsx.DeleteSheet("Sheet1") //TODO::只能放这里删除 |
|
|
|
|
|
|
|
|
//xlsx.DeleteSheet("Sheet1") //TODO::只能放这里删除 |
|
|
//将文件保存至服务器 |
|
|
//将文件保存至服务器 |
|
|
err1 := xlsx.SaveAs(tmpDownloadPath) |
|
|
err1 := xlsx.SaveAs(tmpDownloadPath) |
|
|
if err1 != nil { |
|
|
if err1 != nil { |
|
|