Commit 44d63f5d authored by zhuwei's avatar zhuwei

获取经纪人时间段中新添加的楼盘个数

parent d7afeaa1
......@@ -42,7 +42,6 @@ class Statement extends Basic
"time_start" => date("Y-m-d", time()),
"time_end" => date("Y-m-d", time()),
);*/
Log::write(json_encode($params), '本月完成单数-传入条件44行-7151'); //记录日志
if (!isset($params["agent_id"]) || !isset($params["time_start"]) || !isset($params["time_end"])) {
return $this->response("101", "请求参数错误");
......
......@@ -458,4 +458,27 @@ class GHousesToAgents extends BaseModel
return $data;
}
/**
* 获取经纪人时间段中新添加的楼盘个数
* @param $params
* @return int|string
*/
public function getAddHouseNumByAgentId($params)
{
$where_ = [];
$where_["is_del"] = 0;
if (isset($params["agents_id"])) {
$where_["agents_id"] = $params["agents_id"];
}
if (isset($params["create_time"])) {
$where_["create_time"] = $params["create_time"];
}
return Db::table($this->table)
->where($where_)
->count();
}
}
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