Browse Source

update

consumeLimit
DengBiao 1 year ago
parent
commit
53ec13cf08
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/admin/svc/svc_data_statisstics.go

+ 3
- 2
app/admin/svc/svc_data_statisstics.go View File

@@ -659,7 +659,8 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta
totalData[k2]["amount"] = sumAmount
}

xlsx.NewSheet("所有档口")
//xlsx.NewSheet("所有档口")
xlsx.SetSheetName("Sheet1", "所有档口")
titleList = []string{" 设 备 分 餐 数 据 统 计 表 "}
xlsx.SetSheetRow("所有档口", "A1", &titleList)
titleList = []string{"名 称", "消费笔数", "消费金额"}
@@ -683,7 +684,7 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta
}
xlsx.SetSheetRow("所有档口", "A"+strconv.Itoa(j), &[]interface{}{"合计", totalNum, totalAmount})

xlsx.DeleteSheet("Sheet1") //TODO::只能放这里删除
//xlsx.DeleteSheet("Sheet1") //TODO::只能放这里删除
//将文件保存至服务器
err1 := xlsx.SaveAs(tmpDownloadPath)
if err1 != nil {


Loading…
Cancel
Save