Commit 1a999902 authored by zhuwei's avatar zhuwei

1

parent 1db5bc69
......@@ -146,9 +146,7 @@ class StatementService
$result["agent_total"] = $agent_total;
$result["house_num"] = $this->housesToAgents->getAddHouseNumByAgentId($conditions);
// dump($conditions);
$result["user_num"] = $this->userModel->getAddUserNumByAgentId($conditions);
//dump($conditions);
//本周带看(报备)
$addMarchInNum = $this->marchInModel->getAddMarchInNum($conditions);
$result["follow_up_num"] = isset($addMarchInNum[0]["num"]) ? $addMarchInNum[0]["num"] : 0;
......@@ -156,7 +154,7 @@ class StatementService
//本月业绩
$start_time = date("Y-m-01", time());
$end_time = date("Y-m-d", time());
if ($user_type == 2) {//如果是总监 $conditions["agent_id"]
if ($user_type == 2) {//如果是总监
$where_["district_id"] = $district_id;
} else if ($user_type == 0){
$where_["agent_id"] = $conditions["agent_id"];
......@@ -166,7 +164,6 @@ class StatementService
$where_['create_time'] = array( 'between', array( $start_time . " 00:00:00", $end_time . " 23:59:59" ) );
$where_['status'] =array( "in", '10, 11, 13' );
// $obargain = new OBargainModel();
$performanceSum = $this->bargainModel->getAddBargainNum($where_, 1);//1表示业绩 2表示实收
$result["performance_month"] = isset($performanceSum[0]["num"]) ? $performanceSum[0]["num"] : 0;
......
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