Commit 9afa3ace authored by zhuwei's avatar zhuwei

bug

parent 4e000541
......@@ -709,7 +709,16 @@ class PerformanceService
}
/**
* 新增客户列表
* @param $id
* @param $type
* @param $start_time
* @param $end_time
* @param $page_no
* @param $page_size
* @return array
*/
public function getUserResourceListPcInfo($id,$type, $start_time, $end_time, $page_no, $page_size)
{
......@@ -734,7 +743,16 @@ class PerformanceService
}
/**
* 新增商铺列表
* @param $id
* @param $type
* @param $start_time
* @param $end_time
* @param $page_no
* @param $page_size
* @return array
*/
public function getHousingResourceListPcInfo($id,$type, $start_time, $end_time, $page_no, $page_size)
{
......@@ -787,7 +805,16 @@ class PerformanceService
}
/**
* 团队人数
* @param $id
* @param $type
* @param $start_time
* @param $end_time
* @param $page_no
* @param $page_size
* @return array
*/
public function getTeamNumPcInfo($id,$type, $start_time, $end_time, $page_no, $page_size)
{
......@@ -809,6 +836,16 @@ class PerformanceService
return [ "code" => 200, "date" => $list ];
}
/**
* 成交单数 成交报告
* @param $id
* @param $type
* @param $start_time
* @param $end_time
* @param $page_no
* @param $page_size
* @return array
*/
public function getBargainSumPcInfo($id,$type, $start_time, $end_time, $page_no, $page_size)
{
......
......@@ -1400,13 +1400,23 @@ class OBargainModel extends Model
public function getBargainSumList($field, $params,$page_size,$page_no)
{
$where_ = [];
if (isset($params["agent_id"])) {
$where_["a.agent_id"] = $params["agent_id"];
}
if (isset($params["create_time"])) {
$where_["a.create_time"] = $params["create_time"];
}
$result = $this->db_
->field($field)
->alias("a")
->join("o_order b", "a.order_id = b.id", "left")
->join("g_houses c", "b.house_id = c.id", "left")
->join("o_report d", "a.report_id = d.id", "left")
->where($params)
->where($where_)
->limit($page_size)
->page($page_no)
->order("a.id asc")
......
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