Commit 1816841d authored by clone's avatar clone

bug

parent e2b93ee0
...@@ -714,9 +714,9 @@ class OBargainModel extends Model ...@@ -714,9 +714,9 @@ class OBargainModel extends Model
} elseif ($type == 2) { } elseif ($type == 2) {
$field = "sum(practical_fee) as num"; $field = "sum(practical_fee) as num";
} elseif ($type == 3) { } elseif ($type == 3) {
$field = "count(1) as num"; $field = "count(1) as num";
$where_["trade_type"] = 10;//产品要求统计数量必须是出租类型的180620 $where_["trade_type"] = 10;//产品要求统计数量必须是出租类型的180620
$where_["role"] = 3;//必须是反签方 $where_["role"] = 3;//必须是反签方
} }
if (isset($params["agent_id"])) { if (isset($params["agent_id"])) {
...@@ -859,8 +859,8 @@ class OBargainModel extends Model ...@@ -859,8 +859,8 @@ class OBargainModel extends Model
$where_ = []; $where_ = [];
if (isset($params["agent_id"])) { if (isset($params["agent_id"])) {
$where_["c.report_agent_id"] = $params["agent_id"]; $where_["a.agent_id"] = $params["agent_id"];
$where_["a.agent_id"] = $params["agent_id"]; $where_["a.role"] = 3;
} }
if (isset($params["create_time"])) { if (isset($params["create_time"])) {
$where_["a.create_time"] = $params["create_time"]; $where_["a.create_time"] = $params["create_time"];
......
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