|
@@ -46,7 +46,7 @@ class JjhcController extends WebBaseController
|
|
|
if($keyword != "j0vOW5mBREZxdo3P"){
|
|
|
throw new ResponseException("who are you?", [], 404);
|
|
|
}
|
|
|
- $room = $request->input('keyword',1);
|
|
|
+ $room = $request->input('room',1);
|
|
|
$list = DB::table("recruit_ticket")->leftJoin("recruit_appoint_info","recruit_ticket.appoint_id",'=','recruit_appoint_info.id')->where("recruit_ticket.ex_start",'2022-05-17 08:00:00')->where('recruit_ticket.ex_room',$room)->orderBy('ex_seat','ASC')->limit(3)->get()->toArray();
|
|
|
|
|
|
$objPHPExcel = IOFactory::load(base_path() . "/public/cunwu.xlsx");
|
|
@@ -63,7 +63,7 @@ class JjhcController extends WebBaseController
|
|
|
}
|
|
|
|
|
|
$writer = IOFactory::createWriter($objPHPExcel, 'Xlsx');
|
|
|
- $writer->save(base_path() . "/public/cunwu{$room}.xlsx");
|
|
|
+ $writer->save(base_path() . "/public/excel/cunwu{$room}.xlsx");
|
|
|
dd($list);
|
|
|
// $list = DB::table('lt_apppointment')->distinct()->pluck('card')->toArray();
|
|
|
// $all = DB::table('lt_apppointment')->pluck('card')->toArray();
|