Commit d73cb401 authored by zhuwei's avatar zhuwei

bug

parent 96ec1450
...@@ -41,19 +41,19 @@ class PerformanceReport extends Basic ...@@ -41,19 +41,19 @@ class PerformanceReport extends Basic
// 时间筛选 // 时间筛选
if (!empty($params['start_date']) && !empty($params['end_date'])) { if (!empty($params['start_date']) && !empty($params['end_date'])) {
$where['RAgentReport.create_time'] = ['between', [$params['start_date']. ' 00:00:00', $params['end_date'] . ' 23:59:59']]; $get_params['RAgentReport.create_time'] = ['between', [$params['start_date']. ' 00:00:00', $params['end_date'] . ' 23:59:59']];
} }
// 部门筛选 // 部门筛选
if (!empty($params['district_id'])) { if (!empty($params['district_id'])) {
$where['Agent.district_id'] = $params['district_id']; $get_params['Agent.district_id'] = $params['district_id'];
} }
// 门店筛选 // 门店筛选
if (!empty($params['store_id'])) { if (!empty($params['store_id'])) {
$where['Agent.store_id'] = $params['store_id']; $get_params['Agent.store_id'] = $params['store_id'];
} }
// 经纪人筛选 // 经纪人筛选
if (!empty($params['agent_id'])) { if (!empty($params['agent_id'])) {
$where['Agent.id'] = $params['agent_id']; $get_params['Agent.id'] = $params['agent_id'];
} }
$get_params['RAgentReport.type'] = $type;//类型 0周报 1日报 $get_params['RAgentReport.type'] = $type;//类型 0周报 1日报
...@@ -84,6 +84,7 @@ class PerformanceReport extends Basic ...@@ -84,6 +84,7 @@ class PerformanceReport extends Basic
return view('achievements_report/week-achievements-report'); return view('achievements_report/week-achievements-report');
} }
} }
public function dayAchievementsReportList() public function dayAchievementsReportList()
{ {
if (!$this->request->isAjax()) { if (!$this->request->isAjax()) {
......
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