Commit 689ee976 authored by zhuwei's avatar zhuwei

1

parent 0aeb2f4c
...@@ -277,8 +277,7 @@ class Statement extends Basic ...@@ -277,8 +277,7 @@ class Statement extends Basic
#总监 #总监
$agent_level = 2; $agent_level = 2;
if($params["type"] == 0 ){ #日报 if($params["type"] == 0 ){ #日报
$result = $this->service_->selectStatementForDistrictWithDay($params["agent_id"], $agent_level, $result = $this->service_->selectStatementForDistrictWithDay($agent_level, $district_id);
$store_id,$district_id);
}else{ #周报 }else{ #周报
$result = $this->service_->selectStatementForDistrictWithWeek($params["agent_id"], $agent_level, $result = $this->service_->selectStatementForDistrictWithWeek($params["agent_id"], $agent_level,
$store_id,$district_id); $store_id,$district_id);
......
...@@ -809,7 +809,7 @@ class StatementService ...@@ -809,7 +809,7 @@ class StatementService
* http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=701 * http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=701
*/ */
public function selectStatementForDistrictWithDay($agent_id, $agent_level, $store_id, $district_id) public function selectStatementForDistrictWithDay($agent_level, $district_id)
{ {
$agent_res = $this->getAgentIDsByDistrictId($district_id,$agent_level); $agent_res = $this->getAgentIDsByDistrictId($district_id,$agent_level);
$conditions['agent_id'] = array( "in", $agent_res['agent_ids'] ); $conditions['agent_id'] = array( "in", $agent_res['agent_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