Explorar el Código

update

consumeLimit
DengBiao hace 1 año
padre
commit
53ec13cf08
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      app/admin/svc/svc_data_statisstics.go

+ 3
- 2
app/admin/svc/svc_data_statisstics.go Ver fichero

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


Cargando…
Cancelar
Guardar