Commit 0c0f73ac authored by zhuwei's avatar zhuwei

日报周报带看bug

parent b8cddc4d
...@@ -136,8 +136,9 @@ class StatementService ...@@ -136,8 +136,9 @@ class StatementService
$result["house_num"] = $this->houseModel->getAddHouseNumByAgentId($conditions); $result["house_num"] = $this->houseModel->getAddHouseNumByAgentId($conditions);
//dump($conditions); //dump($conditions);
$result["user_num"] = $this->userModel->getAddUserNumByAgentId($conditions); $result["user_num"] = $this->userModel->getAddUserNumByAgentId($conditions);
//$result["follow_up_num"] = $this->followUpModel->getAddFollowUpNumByAgentId($conditions); //dump($conditions);
$result["follow_up_num"] = $this->reportModel->getAddFollowUpNumByAgentId($conditions); $addMarchInNum = $this->marchInModel->getAddMarchInNum($conditions);
$result["follow_up_num"] = isset($addMarchInNum[0]["num"]) ? $addMarchInNum[0]["num"] : 0;
//本月业绩 //本月业绩
$start_time = date("Y-m-01", time()); $start_time = date("Y-m-01", time());
...@@ -354,7 +355,8 @@ class StatementService ...@@ -354,7 +355,8 @@ class StatementService
$store_list["house_num"] = $this->houseModel->getAddHouseNumByAgentId($conditions_); $store_list["house_num"] = $this->houseModel->getAddHouseNumByAgentId($conditions_);
$store_list["user_num"] = $this->userModel->getAddUserNumByAgentId($conditions_); $store_list["user_num"] = $this->userModel->getAddUserNumByAgentId($conditions_);
//$store_list["follow_up_num"] = $this->followUpModel->getAddFollowUpNumByAgentId($conditions_); //$store_list["follow_up_num"] = $this->followUpModel->getAddFollowUpNumByAgentId($conditions_);
$store_list["follow_up_num"] = $this->reportModel->getAddFollowUpNumByAgentId($conditions_); $addMarchInNum = $this->marchInModel->getAddMarchInNum($conditions_);
$store_list["follow_up_num"] = isset($addMarchInNum[0]["num"]) ? $addMarchInNum[0]["num"] : 0;
//本周业绩 //本周业绩
$start_time = date("Y-m-d", strtotime("-7 day")); $start_time = date("Y-m-d", strtotime("-7 day"));
......
...@@ -125,12 +125,15 @@ class OMarchInModel extends Model ...@@ -125,12 +125,15 @@ class OMarchInModel extends Model
if(isset($params["house_ids"])){ if(isset($params["house_ids"])){
$where_["b.house_id"] = array("in",$params["house_ids"]); $where_["b.house_id"] = array("in",$params["house_ids"]);
} }
return Db::table($this->table)
$return=Db::table($this->table)
->field($field) ->field($field)
->alias("a") ->alias("a")
->join("o_order b","a.order_id = b.id","left") ->join("o_order b","a.order_id = b.id","left")
->where($where_) ->where($where_)
->select(); ->select();
//dump($this->getLastSql());
return $return;
} }
/** /**
......
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