Bläddra i källkod

update

consumeLimit
DengBiao 1 år sedan
förälder
incheckning
53ec13cf08
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. +3
    -2
      app/admin/svc/svc_data_statisstics.go

+ 3
- 2
app/admin/svc/svc_data_statisstics.go Visa fil

@@ -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 {


Laddar…
Avbryt
Spara