Commit a6b694b8 authored by hujun's avatar hujun

预约看铺总数

parent ba4c35c9
......@@ -64,14 +64,19 @@ class SubletModel extends BaseModel
*/
public function getSubletTotal($params)
{
$result = $this->where($params)->count();
return $result;
return $this->alias("a")
->join("g_houses b","a.house_id=b.id","left")
->where($params)->count();
}
/**
* 根据用户id和楼盘id获取用户是否转租
*
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getSubletByHoseId($params)
{
......
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