|
|
@@ -175,17 +175,28 @@ func CentralKitchenForSchoolMyReserve(userIdentityId int, date, startDate, endDa |
|
|
|
dateMap[v.Date] = &md.CentralKitchenForSchoolMyReserveRespList{} |
|
|
|
} |
|
|
|
dateMap[v.Date].Date = v.Date |
|
|
|
dateMap[v.Date].OrdNoList = append(dateMap[v.Date].OrdNoList, v.OrdNo) |
|
|
|
total++ |
|
|
|
if v.Kind == enum.CentralKitchenForSchoolUserWithDayKindForBreakfast { |
|
|
|
dateMap[v.Date].BreakfastOrdNoList = append(dateMap[v.Date].BreakfastOrdNoList, struct { |
|
|
|
OutTradeNo string `json:"out_trade_no" label:"业务订单号"` |
|
|
|
Id int `json:"id" label:"就餐记录id"` |
|
|
|
}{OutTradeNo: v.OrdNo, Id: v.Id}) |
|
|
|
totalBreakfast++ |
|
|
|
dateMap[v.Date].BreakfastTotal++ |
|
|
|
} |
|
|
|
if v.Kind == enum.CentralKitchenForSchoolUserWithDayKindForLunch { |
|
|
|
dateMap[v.Date].LunchOrdNoList = append(dateMap[v.Date].BreakfastOrdNoList, struct { |
|
|
|
OutTradeNo string `json:"out_trade_no" label:"业务订单号"` |
|
|
|
Id int `json:"id" label:"就餐记录id"` |
|
|
|
}{OutTradeNo: v.OrdNo, Id: v.Id}) |
|
|
|
totalLunch++ |
|
|
|
dateMap[v.Date].LunchTotal++ |
|
|
|
} |
|
|
|
if v.Kind == enum.CentralKitchenForSchoolUserWithDayKindForDinner { |
|
|
|
dateMap[v.Date].DinnerOrdNoList = append(dateMap[v.Date].BreakfastOrdNoList, struct { |
|
|
|
OutTradeNo string `json:"out_trade_no" label:"业务订单号"` |
|
|
|
Id int `json:"id" label:"就餐记录id"` |
|
|
|
}{OutTradeNo: v.OrdNo, Id: v.Id}) |
|
|
|
dateMap[v.Date].DinnerTotal++ |
|
|
|
totalDinner++ |
|
|
|
} |
|
|
|