Commit 9d0d51fb authored by zw's avatar zw

task数据统计

parent ea6f3956
......@@ -592,13 +592,14 @@ class OBargainModel extends Model
$where_["a.agent_id"] = $params["agent_id"];
}
if (isset($params["create_time"])) {
$where_["b.create_time"] = $params["create_time"];
$where_["c.income_time"] = $params["create_time"];
}
return Db::table($this->table)
->field($field)
->alias("a")
->join("o_partial_commission b", "a.id=b.bargain_id", "right")
->join('o_real_income c', 'b.real_income_id = c.id', 'left')
->where($where_)
->select();
}
......
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