Commit 4e22718a authored by clone's avatar clone

bug

parent 9b7114e0
......@@ -792,7 +792,7 @@ class OBargainModel extends Model
$where_ = [];
if (isset($params["agent_id"])) {
$where_["c.agent_id"] = $params["agent_id"];
$where_["c.report_agent_id"] = $params["agent_id"];
}
if (isset($params["create_time"])) {
$where_["a.create_time"] = $params["create_time"];
......@@ -802,7 +802,7 @@ class OBargainModel extends Model
$where_["b.house_id"] = array( "in", $params["house_ids"] );
}
return Db::table($this->table)
$data = Db::table($this->table)
->field($field)
->alias("a")
->join("o_order b", "a.order_id = b.id", "left")
......@@ -810,6 +810,8 @@ class OBargainModel extends Model
->join('g_houses d', 'b.house_id = d.id', 'left')
->where($where_)
->select();
//echo Db::table($this->table)->getLastSql();
return $data;
}
/**
......
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