|
@@ -478,7 +478,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD |
|
|
|
|
|
|
|
|
titleList = []string{startDate.Format("2006-01-02") + "~~" + endDate.Format("2006-01-02") + " 订单表"} |
|
|
titleList = []string{startDate.Format("2006-01-02") + "~~" + endDate.Format("2006-01-02") + " 订单表"} |
|
|
xlsx.SetSheetRow("Sheet1", "A1", &titleList) |
|
|
xlsx.SetSheetRow("Sheet1", "A1", &titleList) |
|
|
titleList = []string{"订单号", "学生姓名", "学校", "年级", "班级", "家长电话", "预定日期", "预定天数", "订单价格", "支付时间", "订单状态"} |
|
|
|
|
|
|
|
|
titleList = []string{"订单号", "学生姓名", "学校", "年级", "班级", "家长电话", "预定日期", "预定餐数", "订单价格", "支付时间", "订单状态"} |
|
|
xlsx.SetSheetRow("Sheet1", "A2", &titleList) |
|
|
xlsx.SetSheetRow("Sheet1", "A2", &titleList) |
|
|
|
|
|
|
|
|
xlsx.MergeCell("Sheet1", "A1", "K1") //合并单元格 |
|
|
xlsx.MergeCell("Sheet1", "A1", "K1") //合并单元格 |
|
@@ -517,7 +517,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD |
|
|
ordState = enum.CentralKitchenForSchoolPackageOrdOrdState.String(enum.CentralKitchenForSchoolPackageOrdOrdStateForComplete) |
|
|
ordState = enum.CentralKitchenForSchoolPackageOrdOrdState.String(enum.CentralKitchenForSchoolPackageOrdOrdStateForComplete) |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|
//预定天数、预定日期 |
|
|
|
|
|
|
|
|
//预定餐数、预定日期 |
|
|
var list []*model.CentralKitchenForSchoolUserWithDay |
|
|
var list []*model.CentralKitchenForSchoolUserWithDay |
|
|
err1 := json.Unmarshal([]byte(v.CentralKitchenForSchoolPackageOrd.WithDayData), &list) |
|
|
err1 := json.Unmarshal([]byte(v.CentralKitchenForSchoolPackageOrd.WithDayData), &list) |
|
|
if err1 != nil { |
|
|
if err1 != nil { |
|
|