Commit c157ba21 authored by zhuwei's avatar zhuwei

bug

parent 255eb6a0
......@@ -5,6 +5,7 @@ namespace app\model;
use app\api_broker\service\PushMessageService;
use app\task\controller\ResultsSummaryNewTask;
use Think\Db;
use think\Log;
class GHousesToAgents extends BaseModel
......@@ -469,6 +470,7 @@ class GHousesToAgents extends BaseModel
{
$where_ = [];
$where_["is_del"] = 0;
$where_["type"] = 2;
if (isset($params["agent_id"])) {
$where_["agents_id"] = $params["agent_id"];
......@@ -476,7 +478,7 @@ class GHousesToAgents extends BaseModel
if (isset($params["create_time"])) {
$where_["create_time"] = $params["create_time"];
}
return $this->where($where_)->count();
$result = $this->where($where_)->count();
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