Commit ce944c28 authored by clone's avatar clone

bug

parent a13b9e47
......@@ -24,8 +24,6 @@ class PerformanceService
{
private $totalModel;
private $agentModel;
private $agentsModel;
private $tAgentTotalModel;
private $houseModel;
private $userModel;
private $bargainModel;
......@@ -39,8 +37,6 @@ class PerformanceService
{
$this->totalModel = new TAgentTotalModel();
$this->agentModel = new AAgents();
$this->agentsModel = new AAgents();
$this->tAgentTotalModel = new TAgentTotalModel();
$this->houseModel = new GHouses();
$this->userModel = new Users();
$this->bargainModel = new OBargainModel();
......@@ -396,8 +392,8 @@ class PerformanceService
$params["agent_id"] = array( "in", $agent_ids );
$list = [];
$now_date = date("Y-m-d", time());
if ($start_time == $now_date && $end_time == $now_date) {
/* $now_date = date("Y-m-d", time());
if ($start_time == $now_date && $end_time == $now_date) {*/
$param["id"] = array( "in", $agent_ids );
// 1.获取所有经纪人
......@@ -441,7 +437,7 @@ class PerformanceService
}
} else {
/* } else {
$field = "store_id,agent_id,sum(add_house_num) as add_house_num,sum(add_user_num) as add_user_num,sum(march_in_num) as march_in_num,
sum(performance) as performance,sum(official_receipts) as official_receipts";
......@@ -450,7 +446,7 @@ class PerformanceService
$order = "total_time desc";
$list = $this->totalModel->getTotalByAgentId($field, $params, $is_store, $order);
}
}*/
if (count($list) > 0) {
foreach ($list as $key => $item) {
......
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