Commit 1b446ea8 authored by clone's avatar clone

bug

parent 4e22718a
......@@ -123,13 +123,13 @@ class Performance extends Basic
{
header('Access-Control-Allow-Origin:*');
$params = $this->params;
/* $params = array(
"agent_id" => 6,
"start_time" => "2018-04-09",
"end_time" => "2018-04-12",
/* $params = array(
"agent_id" => 5741,
"start_time" => "2018-08-08",
"end_time" => "2018-08-08",
"is_case" => 1,//1经纪人 2案场
"house_id" => 0,
"type" => 1 // 1带看 2进场 3收款 4成交报告
"type" => 4 // 1带看 2进场 3收款 4成交报告
);*/
if (!isset($params["agent_id"]) || !isset($params["start_time"]) || !isset($params["end_time"]) || !isset($params["type"])) {
return $this->response("101", "请求参数错误");
......
......@@ -796,6 +796,8 @@ class OBargainModel extends Model
}
if (isset($params["create_time"])) {
$where_["a.create_time"] = $params["create_time"];
$where_["a.father_id"] = 0;
$where_["a.trade_type"] = 10;
}
if (isset($params["house_ids"])) {
......
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