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
a7e82627
Commit
a7e82627
authored
Oct 11, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EXCEL
parent
c8d5e867
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
Performance.php
application/index/controller/Performance.php
+12
-3
No files found.
application/index/controller/Performance.php
View file @
a7e82627
...
...
@@ -50,9 +50,9 @@ class Performance extends Basic
$start_day
=
!
empty
(
$params
[
"start_day"
])
?
$params
[
"start_day"
]
:
date
(
"Y-m-01"
,
time
());
$end_day
=
!
empty
(
$params
[
"end_day"
])
?
$params
[
"end_day"
]
:
date
(
"Y-m-d"
,
time
());
$father_id
=
!
empty
(
$params
[
"father_id"
])
?
$params
[
"father_id"
]
:
''
;
//判断是否是导出EXCEL
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
if
(
$is_excel
){
if
(
$is_excel
==
1
){
$list
=
$this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
}
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
...
...
@@ -94,6 +94,11 @@ class Performance extends Basic
$end_day
=
!
empty
(
$params
[
"end_day"
])
?
$params
[
"end_day"
]
:
date
(
"Y-m-d"
,
time
());
$start_day
=
!
empty
(
$params
[
"start_day"
])
?
$params
[
"start_day"
]
:
date
(
"Y-m-01"
,
time
());
$father_id
=
!
empty
(
$params
[
"father_id"
])
?
$params
[
"father_id"
]
:
''
;
//判断是否是导出EXCEL
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
if
(
$is_excel
==
1
){
$list
=
$this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
}
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
[
'list'
];
...
...
@@ -135,7 +140,11 @@ class Performance extends Basic
$end_day
=
!
empty
(
$params
[
"end_day"
])
?
$params
[
"end_day"
]
:
date
(
"Y-m-d"
,
time
());
$start_day
=
!
empty
(
$params
[
"start_day"
])
?
$params
[
"start_day"
]
:
date
(
"Y-m-01"
,
time
());
$father_id
=
!
empty
(
$params
[
"father_id"
])
?
$params
[
"father_id"
]
:
''
;
//判断是否是导出EXCEL
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
if
(
$is_excel
==
1
){
$list
=
$this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
}
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
//dump($list);
if
(
count
(
$list
)
>
0
)
{
...
...
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