Commit ebf6a61d authored by hujun's avatar hujun

update_time

parent 12b19af2
...@@ -43,7 +43,12 @@ class Cost extends Basic ...@@ -43,7 +43,12 @@ class Cost extends Basic
$fee_model = new FApplyForFee(); $fee_model = new FApplyForFee();
if (empty($this->params['excel'])) { if (empty($this->params['excel'])) {
$list = $fee_model->getJoinAgentList($pageNo, $pageSize, 'a.ID DESC', $field, $where); if (in_array($this->params['check_status'], [1,2,3,4])) {
$order = 'a.update_time DESC';
} else {
$order = 'a.ID DESC';
}
$list = $fee_model->getJoinAgentList($pageNo, $pageSize, $order, $field, $where);
$data['list'] = &$list; $data['list'] = &$list;
$data['total'] = $fee_model->getJoinAgentListTotal($where); $data['total'] = $fee_model->getJoinAgentListTotal($where);
return $this->response(200, '', $data); return $this->response(200, '', $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