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

bug

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