Explorar el Código

update

add_mode
DengBiao hace 1 año
padre
commit
0be2ab4ed0
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. +9
    -1
      app/admin/svc/svc_data_statisstics.go

+ 9
- 1
app/admin/svc/svc_data_statisstics.go Ver fichero

@@ -676,7 +676,15 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
titleList = []string{"年级", "班级", "早餐", "午餐", "晚餐"}
xlsx.SetSheetRow("Sheet1", "A2", &titleList)
xlsx.MergeCell("Sheet1", "A1", "E1") //合并单元格
j := 3 //表头前两行用了,只能从第三行开始
style, err := xlsx.NewStyle(`{"fill":{"type":"pattern","color":["FF0000"],"pattern":1}}`)
if err != nil {
logx.Error(err)
println("<<<<CentralKitchenForSchoolDataStatisticsExport3>>>>>Error:::", err.Error())
panic(err)
}
xlsx.SetCellStyle("Sheet1", "A1", "E1", style)

j := 3 //表头前两行用了,只能从第三行开始
for k2, v2 := range v1 {
if k2 == "" {
//若年级为空,则为教师餐


Cargando…
Cancelar
Guardar