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
b3176c67
Commit
b3176c67
authored
Aug 23, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1f37bc8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
Performance.php
application/api_broker/controller/Performance.php
+0
-1
PerformanceService.php
application/api_broker/service/PerformanceService.php
+1
-1
No files found.
application/api_broker/controller/Performance.php
View file @
b3176c67
...
@@ -52,7 +52,6 @@ class Performance extends Basic
...
@@ -52,7 +52,6 @@ class Performance extends Basic
$end_day
=
!
empty
(
$params
[
"end_day"
])
?
$params
[
"end_day"
]
:
date
(
"Y-m-d"
,
time
());
$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
());
$start_day
=
!
empty
(
$params
[
"start_day"
])
?
$params
[
"start_day"
]
:
date
(
"Y-m-01"
,
time
());
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"agent_id"
],
$params
[
"type"
],
$start_day
,
$end_day
,
$params
[
"site_id"
]);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"agent_id"
],
$params
[
"type"
],
$start_day
,
$end_day
,
$params
[
"site_id"
]);
$all_performance_total
=
$all_official_receipts_total
=
0
;
$all_performance_total
=
$all_official_receipts_total
=
0
;
foreach
(
$list
as
$key
=>
$value
)
{
foreach
(
$list
as
$key
=>
$value
)
{
...
...
application/api_broker/service/PerformanceService.php
View file @
b3176c67
...
@@ -71,7 +71,7 @@ class PerformanceService
...
@@ -71,7 +71,7 @@ class PerformanceService
if
(
count
(
$agent_info
)
>
0
)
{
if
(
count
(
$agent_info
)
>
0
)
{
$agent_info
=
$agent_info
[
0
];
$agent_info
=
$agent_info
[
0
];
}
}
// dump($agent_info);exit;
$where_
=
[];
$where_
=
[];
$where_
[
'd.site_id'
]
=
$site_id
;
$where_
[
'd.site_id'
]
=
$site_id
;
$where_
[
'a.total_time'
]
=
array
(
'between'
,
array
(
$yesterday
,
$end_day
)
);
$where_
[
'a.total_time'
]
=
array
(
'between'
,
array
(
$yesterday
,
$end_day
)
);
...
...
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