Kaynağa Gözat

update

add_mode
DengBiao 1 yıl önce
ebeveyn
işleme
fe2f952765
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      app/admin/svc/svc_data_statisstics.go

+ 3
- 3
app/admin/svc/svc_data_statisstics.go Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet