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
3b517991
Commit
3b517991
authored
Apr 04, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
a17e691d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
Performance.php
application/api_broker/controller/Performance.php
+5
-5
PerformanceService.php
application/api_broker/service/PerformanceService.php
+4
-1
No files found.
application/api_broker/controller/Performance.php
View file @
3b517991
...
@@ -102,11 +102,11 @@ class Performance extends Basic
...
@@ -102,11 +102,11 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"agent_id" =>
1
,
"agent_id"
=>
8882
,
"start_time" => "2018-0
3-10
",
"start_time"
=>
"2018-0
4-04
"
,
"end_time" => "2018-0
3-23
",
"end_time"
=>
"2018-0
4-04
"
,
);
*/
);
try
{
try
{
$result
=
$this
->
service_
->
storePerformance
(
$params
[
"agent_id"
],
$params
[
"start_time"
],
$params
[
"end_time"
]);
$result
=
$this
->
service_
->
storePerformance
(
$params
[
"agent_id"
],
$params
[
"start_time"
],
$params
[
"end_time"
]);
...
...
application/api_broker/service/PerformanceService.php
View file @
3b517991
...
@@ -329,6 +329,9 @@ class PerformanceService
...
@@ -329,6 +329,9 @@ class PerformanceService
$params
[
'total_time'
]
=
array
(
'between'
,
array
(
$start_time
,
$end_time
)
);
$params
[
'total_time'
]
=
array
(
'between'
,
array
(
$start_time
,
$end_time
)
);
$list
=
$this
->
totalModel
->
getTotalByAgentId
(
$field
,
$params
,
$type
,
""
);
$list
=
$this
->
totalModel
->
getTotalByAgentId
(
$field
,
$params
,
$type
,
""
);
if
(
count
(
$list
)
>
0
)
{
$list
=
$list
[
0
];
}
}
}
if
(
count
(
$list
)
>
0
)
{
if
(
count
(
$list
)
>
0
)
{
...
@@ -371,7 +374,7 @@ class PerformanceService
...
@@ -371,7 +374,7 @@ class PerformanceService
if
(
count
(
$info
)
>
0
)
{
if
(
count
(
$info
)
>
0
)
{
$list
[
$key
][
"store_name"
]
=
$info
[
0
][
"store_name"
];
$list
[
$key
][
"store_name"
]
=
$info
[
0
][
"store_name"
];
$list
[
$key
][
"name"
]
=
$info
[
0
][
"name"
];
$list
[
$key
][
"name"
]
=
$info
[
0
][
"name"
];
}
else
{
}
else
{
$list
[
$key
][
"store_name"
]
=
""
;
$list
[
$key
][
"store_name"
]
=
""
;
$list
[
$key
][
"name"
]
=
""
;
$list
[
$key
][
"name"
]
=
""
;
}
}
...
...
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