소스 검색

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)


불러오는 중...
취소
저장