瀏覽代碼

update

add_mode
DengBiao 1 年之前
父節點
當前提交
fe2f952765
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      app/admin/svc/svc_data_statisstics.go

+ 3
- 3
app/admin/svc/svc_data_statisstics.go 查看文件

@@ -1474,15 +1474,15 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
}
xlsx.SetSheetRow("Sheet1", "A2", &titleList)

xlsx.MergeCell("Sheet1", "A1", "B1") //合并单元格
xlsx.MergeCell("Sheet1", "A1", "E1") //合并单元格
style, err := xlsx.NewStyle(`{"fill":{"type":"pattern","color":["FFFF00"],"pattern":1}, "alignment":{"horizontal":"center"}}`)
if err != nil {
logx.Error(err)
println("<<<<CentralKitchenForSchoolDataStatisticsExport3>>>>>Error:::", err.Error())
panic(err)
}
xlsx.SetCellStyle("Sheet1", "A1", "B1", style)
xlsx.SetColWidth("Sheet1", "A", "B", 40)
xlsx.SetCellStyle("Sheet1", "A1", "E1", style)
xlsx.SetColWidth("Sheet1", "A", "E", 40)

j := 3 //表头前两行用了,只能从第三行开始
total := int64(0)


Loading…
取消
儲存