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
ea5e8e11
Commit
ea5e8e11
authored
Jul 30, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩总条数修改
parent
f6724031
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Performance.php
application/api_broker/controller/Performance.php
+3
-2
PerformanceService.php
application/api_broker/service/PerformanceService.php
+2
-2
No files found.
application/api_broker/controller/Performance.php
View file @
ea5e8e11
...
...
@@ -55,10 +55,11 @@ class Performance extends Basic
$request_source_type
=
!
empty
(
$params
[
"request_source_type"
])
?
$params
[
"request_source_type"
]
:
0
;
//请求来源默认0:App 1:PC后台
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"agent_id"
],
$params
[
"type"
],
$end_day
,
$start_day
,
$request_source_type
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"agent_id"
],
$params
[
"type"
],
$end_day
,
$start_day
,
$request_source_type
);
//dump($list);
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
;
$result
[
"list"
]
=
$list
[
'list'
];
$result
[
"total"
]
=
$list
[
'total'
];
$result
[
"start_time"
]
=
$start_day
;
$result
[
"end_time"
]
=
$end_day
;
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
...
...
application/api_broker/service/PerformanceService.php
View file @
ea5e8e11
...
...
@@ -89,7 +89,7 @@ class PerformanceService
$result
=
$this
->
totalModel
->
getTotalByAgentId
(
$field
,
$where_
,
$type
,
$order
);
//dump($result);
$arr
=
[];
$
arr
[
'total'
]
=
$this
->
totalModel
->
getTotalByAgentIdCount
(
$field
,
$where_
,
$type
,
$order
);
$
total
=
$this
->
totalModel
->
getTotalByAgentIdCount
(
$field
,
$where_
,
$type
,
$order
);
$field
=
"a.name,a.img,b.store_name,c.district_name"
;
//dump($result);
$ranking_num
=
$request_source_type
==
0
?
5
:
100
;
//App显示前5 PC后台显示前100
...
...
@@ -149,7 +149,7 @@ class PerformanceService
}
}
return
$arr
;
return
[
'list'
=>
$arr
,
'total'
=>
$total
]
;
}
...
...
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