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