修改底层函数
This commit is contained in:
@@ -85,6 +85,20 @@ class Sql
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* left join
|
||||
* @param array $order 排序条件
|
||||
* @return $this
|
||||
* $order='id desc'
|
||||
*/
|
||||
public function join($condition = '')
|
||||
{
|
||||
if ($condition) {
|
||||
$this->filter = ' LEFT JOIN ' . $condition . ' ';
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼装排序条件
|
||||
* @param array $order 排序条件
|
||||
|
||||
Reference in New Issue
Block a user