Commit a04000bc authored by zhuwei's avatar zhuwei Committed by hujun

bug

parent 217709d0
......@@ -1005,12 +1005,15 @@ class GHouses extends BaseModel
public function getAddHouseNumByAgentId($params)
{
$where_ = [];
$where_["status"] = array( 'neq', 3 );
if (isset($params["agent_id"])) {
$where_["upload_id"] = $params["agent_id"];
}
if (isset($params["create_time"])) {
$where_["create_time"] = $params["create_time"];
}
return Db::table($this->table)
->where($where_)
->count();
......@@ -1046,18 +1049,22 @@ class GHouses extends BaseModel
*/
public function getAddHouseNumGroupTimeNew($params)
{
$field = "count(1) as num";
$field = "count(1) as num";
$where_ = [];
$where_["status"] = array( 'neq', 3 );
if (isset($params["agent_id"])) {
$where_["upload_id"] = $params["agent_id"];
}
if (isset($params["create_time"])) {
$where_["create_time"] = $params["create_time"];
}
return Db::table($this->table)
$result = Db::table($this->table)
->field($field)
->where($where_)
->select();
//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