Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
d73cb401
Commit
d73cb401
authored
Sep 29, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
96ec1450
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
PerformanceReport.php
application/index/controller/PerformanceReport.php
+8
-7
No files found.
application/index/controller/PerformanceReport.php
View file @
d73cb401
...
@@ -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日报
...
@@ -77,14 +77,15 @@ class PerformanceReport extends Basic
...
@@ -77,14 +77,15 @@ class PerformanceReport extends Basic
$data
[
'total'
]
=
$res_total
;
$data
[
'total'
]
=
$res_total
;
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
}
}
public
function
weekAchievementsReportList
()
public
function
weekAchievementsReportList
()
{
{
if
(
!
$this
->
request
->
isAjax
())
{
if
(
!
$this
->
request
->
isAjax
())
{
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
())
{
return
view
(
'achievements_report/day-achievements-report'
);
//执行view方法 找view文件件夹下 相对应的html文件
return
view
(
'achievements_report/day-achievements-report'
);
//执行view方法 找view文件件夹下 相对应的html文件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment