Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
455d8c2766
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go

+ 9
- 9
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go View File

@@ -814,15 +814,15 @@ func CentralKitchenForSchoolReserveList(req md.CentralKitchenForSchoolReserveLis
centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{} centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0) centralKitchenForSchoolUserWithDayDb.Set(0)
for _, v := range m { for _, v := range m {
count1, err1 := centralKitchenForSchoolUserWithDayDb.CountCentralKitchenForSchoolUserWithDayByOrdNo( //count1, err1 := centralKitchenForSchoolUserWithDayDb.CountCentralKitchenForSchoolUserWithDayByOrdNo(
v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo, enum2.CentralKitchenForSchoolUserWithDayStateForCancel, // v.CentralKitchenForSchoolPackageOrdForReserve.OutTradeNo, enum2.CentralKitchenForSchoolUserWithDayStateForCancel,
req.StartDate, req.EndDate, []int{req.Kind}) // req.StartDate, req.EndDate, []int{req.Kind})
if err1 != nil { //if err1 != nil {
return nil, 0, err1 // return nil, 0, err1
} //}
if count1 == 0 { //if count1 == 0 {
continue // continue
} //}


resp = append(resp, md.CentralKitchenForSchoolReserveListResp{ resp = append(resp, md.CentralKitchenForSchoolReserveListResp{
Id: v.CentralKitchenForSchoolPackageOrdForReserve.Id, Id: v.CentralKitchenForSchoolPackageOrdForReserve.Id,


||||||
x
 
000:0
Loading…
Cancel
Save