瀏覽代碼

update

tmp
DengBiao 10 月之前
父節點
當前提交
79f6a07522
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      app/admin/svc/svc_data_statisstics.go

+ 3
- 3
app/admin/svc/svc_data_statisstics.go 查看文件

@@ -986,7 +986,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
xlsx.SaveAs("./static" + downloadPath)
break
case 3:
xlsx := excelize.NewFile()
//学校预定统计表
fileName = "学校预定统计表_" + utils.Int64ToStr(now.UnixMilli()) + ".zip"
downloadPath = "/export/central_kitchen_for_school/" + fileName
@@ -1064,7 +1063,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
println("<<<<SelfSupportForSchoolDataStatisticsExport3>>>>>Error:::", err.Error())
return
}
time.Sleep(20 * time.Millisecond) // 20毫秒
time.Sleep(2 * time.Millisecond) // 2毫秒

if v.CentralKitchenForSchoolPackageOrdForReserve.Kind == enum.CentralKitchenForSchoolUserWithDayKindForBreakfast {
list[v.Enterprise.Name][v.Grade.Name][v.Class.Name]["breakfast"] += count
@@ -1078,6 +1077,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
}

for k1, v1 := range list {
xlsx := excelize.NewFile()
tmpFileName := k1 + "学校预定统计表_" + utils.Int64ToStr(now.UnixMilli()) + ".xlsx"
tmpDownloadPath := "./static/export/central_kitchen_for_school/" + tmpFileName
startDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local)
@@ -1199,7 +1199,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
}
break
case 4:
xlsx := excelize.NewFile()
//班级明细表
fileName = "班级明细表_" + utils.Int64ToStr(now.UnixMilli()) + ".zip"
downloadPath = "/export/central_kitchen_for_school/" + fileName
@@ -1296,6 +1295,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
}

for k1, v1 := range list {
xlsx := excelize.NewFile()
tmpFileName := k1 + "班级明细_" + utils.Int64ToStr(now.UnixMilli()) + ".xlsx"
tmpDownloadPath := "./static/export/central_kitchen_for_school/" + tmpFileName
startDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local)


Loading…
取消
儲存