Commit 10c9bbc5 authored by clone's avatar clone

bug

parent 98cd926d
......@@ -708,7 +708,7 @@ class OBargainModel extends Model
->join($join)
->where($where_)
->select();
//echo $this->getLastSql();
// echo $this->getLastSql();
return $return;
}
......
......@@ -555,7 +555,7 @@ class OReportModel extends Model
*/
public function getAddReportNum($params)
{
$field = "count(1) as num";
$field = "count(DISTINCT a.id) as num";
$where_ = [];
if (isset($params["agent_id"])) {
$where_["a.report_agent_id"] = $params["agent_id"];
......@@ -573,7 +573,6 @@ class OReportModel extends Model
->join("o_order b", "a.id = b.f_id", "left")
->where($where_)
->select();
//echo Db::table($this->table)->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