request->get('date_type',2);//时间范围类型 $start_date=Yii::$app->request->get('start_date',$start_date);//起始日期 $end_date=Yii::$app->request->get('end_date',$end_date);//截止日期 $order_source=Yii::$app->request->get('order_source',-1);//订单渠道 $type_limit=Yii::$app->request->get('type_limit',1);//票种类别 $order_status=Yii::$app->request->get('order_status','');//订单状态 $more_search=Yii::$app->request->get('more_search','');//更多查询 $page_size=Yii::$app->request->get('page_size',10);//每页显示数 $current_page=Yii::$app->request->get('current_page',1);//当前页数 $line = Yii::$app->request->get('line',''); $start_area = Yii::$app->request->get('start_area',''); $end_area = Yii::$app->request->get('end_area',''); $search_bus_no = Yii::$app->request->get('search_bus_no',''); $json = $this->logic()->getCheckTicketList($date_type,$start_date,$end_date,$order_source,$type_limit,$order_status,$more_search,$page_size,$current_page,$line,$start_area,$end_area,$search_bus_no); return $this->render('check_ticket_list',$json); } /** * Des:逻辑处理类型 * Name: logic * @return TicketManage * @author 倪宗锋 */ private function logic() { if ($this->service == null) { $this->service = new TicketManage(); } return $this->service; } /** * Function Description:检票 * Function Name: actionChangeTicketStatus * * @return string * * @author 李健 */ public function actionChangeTicketStatus() { $info = Yii::$app->request->post('info'); $json = $this->logic()->changeTicketStatus($info); return json_encode($json); } /** * Function Description:校验 * Function Name: actionCheck * * @return string * * @author 李健 */ public function actionCheck() { $info = Yii::$app->request->post('info'); $json = $this->logic()->check($info); return json_encode($json); } }