Commit 0cbd8df0 authored by hujun's avatar hujun

收款记录

parent 9c6d0f64
......@@ -25,6 +25,8 @@ class Collection extends Basic
public function getCollection() {
if ($this->request->isGet()) {
return view('getCollection');
} elseif ($this->request->isAjax()) {
$order = new OPayLogModel();
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
......@@ -78,9 +80,7 @@ class Collection extends Basic
$data['data']['list'] = $order->getAddPayLogOrderListLmit($pageNo, $pageSize, $order_ = 'a.id desc', $field, $where);
$data['data']['total'] = $order->getAddPayLogOrderListLmitTotal($where);
$data['data']['money_total'] = $order->getMoneyTotal(); //总额
return $this->response($data['status'], $data['msg'], $data['data']);
} elseif ($this->request->isAjax()) {
return view('getCollection');
return $this->response(200, "", $data['data']);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment