Bladeren bron

update

add_mode
DengBiao 1 jaar geleden
bovenliggende
commit
fe2f952765
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +3
    -3
      app/admin/svc/svc_data_statisstics.go

+ 3
- 3
app/admin/svc/svc_data_statisstics.go Bestand weergeven

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


Laden…
Annuleren
Opslaan