Commit 10c9bbc5 authored by clone's avatar clone

bug

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