浏览代码

update

add_mode
DengBiao 1年前
父节点
当前提交
a394bb807d
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go

+ 12
- 0
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go 查看文件

@@ -811,7 +811,19 @@ func CentralKitchenForSchoolReserveList(req md.CentralKitchenForSchoolReserveLis
return nil, 0, err
}

centralKitchenForSchoolUserWithDayDb := db.CentralKitchenForSchoolUserWithDayDb{}
centralKitchenForSchoolUserWithDayDb.Set(0)
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{
Id: v.CentralKitchenForSchoolPackageOrdForReserve.Id,
EnterpriseId: v.UserIdentity.EnterpriseId,


正在加载...
取消
保存