input('type')=='直发'){ $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('json_content','like','%直发%'); } if($request->input('type')=='专线'){ $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('json_content','like','%专线%'); } if ($request->input('created_at_start')){ $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('created_at','>',$request->input('created_at_start')); } if ($request->input('created_at_end')){ $waybillFinancialSnapshots=$waybillFinancialSnapshots->where('created_at','<',$request->input('created_at_end')); } $waybillFinancialSnapshots=$waybillFinancialSnapshots->paginate(50); return view('waybill.waybillFinancialSnapshot.index',['waybillFinancialSnapshots'=>$waybillFinancialSnapshots,'filterData'=>$request->input(),'type'=>$request->input('type'),'excepted'=>true]); } }