Browse Source

uipdate

add_mode
DengBiao 1 year ago
parent
commit
ef84d202e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/admin/svc/svc_data_statisstics.go

+ 1
- 1
app/admin/svc/svc_data_statisstics.go View File

@@ -1000,6 +1000,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD


titleList = []string{"学校名称", "预定总费用", "退款总计"} titleList = []string{"学校名称", "预定总费用", "退款总计"}
xlsx.SetSheetRow("Sheet1", "A1", &titleList) xlsx.SetSheetRow("Sheet1", "A1", &titleList)
j := 2 //表头被第一行用了,只能从第二行开始
for _, v := range m { for _, v := range m {
var income, refund string var income, refund string
//统计收入 //统计收入
@@ -1037,7 +1038,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
refund = mapArr2[0]["total"] refund = mapArr2[0]["total"]
} }
} }
j := 2 //表头被第一行用了,只能从第二行开始
xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{v.Name, income, refund}) xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{v.Name, income, refund})
j++ j++
} }


Loading…
Cancel
Save