|
@@ -811,7 +811,19 @@ func CentralKitchenForSchoolReserveList(req md.CentralKitchenForSchoolReserveLis |
|
|
return nil, 0, err |
|
|
return nil, 0, err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{} |
|
|
|
|
|
centralKitchenForSchoolUserWithDayDb.Set(0) |
|
|
for _, v := range m { |
|
|
for _, v := range m { |
|
|
|
|
|
count1, err1 := centralKitchenForSchoolUserWithDayDb.CountCentralKitchenForSchoolUserWithDayByOrdNo( |
|
|
|
|
|
v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo, enum2.CentralKitchenForSchoolUserWithDayStateForCancel, |
|
|
|
|
|
req.StartDate, req.EndDate, []int{req.Kind}) |
|
|
|
|
|
if err1 != nil { |
|
|
|
|
|
return nil, 0, err1 |
|
|
|
|
|
} |
|
|
|
|
|
if count1 == 0 { |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
resp = append(resp, md.CentralKitchenForSchoolReserveListResp{ |
|
|
resp = append(resp, md.CentralKitchenForSchoolReserveListResp{ |
|
|
Id: v.CentralKitchenForSchoolPackageOrdForReserve.Id, |
|
|
Id: v.CentralKitchenForSchoolPackageOrdForReserve.Id, |
|
|
EnterpriseId: v.UserIdentity.EnterpriseId, |
|
|
EnterpriseId: v.UserIdentity.EnterpriseId, |
|
|