Exemplo n.º 1
0
 /**
  * 案件列表
  */
 public function listAction()
 {
     $p = $this->urlParam();
     $limit = $this->limit($p);
     $post = $this->request->get();
     if (isset($post['deal']) and $post['deal'] == 1) {
         $condition = implode($this->searchConditions(), ' and ');
         $list = Loan::all($condition, $limit);
         $deal = true;
     } else {
         $condition = implode($this->searchConditions(), ' and ');
         $list = LoanSketch::rclist($condition, $limit);
         $deal = false;
     }
     $count = $list['count'];
     $list = $list['list'];
     $page = $this->page($count, $limit[0], $p);
     $this->view->setVars(['list' => $list, 'page' => $page, 'deal' => $deal]);
 }