Commit 56cd8bcf authored by zhuwei's avatar zhuwei

bug

parent d7573ef5
......@@ -293,6 +293,7 @@ class AAgents extends BaseModel
public function getAgentByIdV2($field = "a.id", $params, $page_no, $page_size)
{
$order_ = 'a.id desc';
$where_ = [];
if (isset($params["agent_id"])) {
$where_["a.id"] = $params["agent_id"];
......@@ -324,8 +325,9 @@ class AAgents extends BaseModel
->where($where_)
->limit($page_size)
->page($page_no)
->order($order_)
->select();
//echo $this->getLastSql();
//echo $this->getLastSql();
return $result;
}
......
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