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
49ea5477
Commit
49ea5477
authored
Apr 13, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
7c26dd17
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Performance.php
application/api_broker/controller/Performance.php
+3
-3
PerformanceService.php
application/api_broker/service/PerformanceService.php
+3
-4
No files found.
application/api_broker/controller/Performance.php
View file @
49ea5477
...
@@ -101,11 +101,11 @@ class Performance extends Basic
...
@@ -101,11 +101,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"
=>
6
,
"agent_id"
=>
6
,
"start_time"
=>
"2018-04-09"
,
"start_time"
=>
"2018-04-09"
,
"end_time"
=>
"2018-04-12"
,
"end_time"
=>
"2018-04-12"
,
);
*/
);
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"
]);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
...
@@ -158,7 +158,7 @@ class Performance extends Basic
...
@@ -158,7 +158,7 @@ class Performance extends Basic
/* $params = array(
/* $params = array(
"agent_id" => 6,
"agent_id" => 6,
"is_store" => 1,//1经纪人排行 2门店
"is_store" => 1,//1经纪人排行 2门店
"start_time" => "2018-04-
09
",
"start_time" => "2018-04-
12
",
"end_time" => "2018-04-12",
"end_time" => "2018-04-12",
);*/
);*/
...
...
application/api_broker/service/PerformanceService.php
View file @
49ea5477
...
@@ -378,8 +378,7 @@ class PerformanceService
...
@@ -378,8 +378,7 @@ class PerformanceService
$now_date
=
date
(
"Y-m-d"
,
time
());
$now_date
=
date
(
"Y-m-d"
,
time
());
if
(
$start_time
==
$now_date
&&
$end_time
==
$now_date
)
{
if
(
$start_time
==
$now_date
&&
$end_time
==
$now_date
)
{
/* $params["id"] = array( "in", $agent_ids );
$param
[
"id"
]
=
array
(
"in"
,
$agent_ids
);
// dump($agent_ids);
//todo 1.获取所有经纪人
//todo 1.获取所有经纪人
$field
=
"id as agent_id,store_id"
;
$field
=
"id as agent_id,store_id"
;
...
@@ -387,7 +386,7 @@ class PerformanceService
...
@@ -387,7 +386,7 @@ class PerformanceService
if
(
$is_store
==
2
)
{
if
(
$is_store
==
2
)
{
$group
=
"store_id"
;
$group
=
"store_id"
;
}
}
$list = $this->agentModel->getAgentsList($field, $param
s
, $group);
$list
=
$this
->
agentModel
->
getAgentsList
(
$field
,
$param
,
$group
);
//dump($list);
//dump($list);
foreach
(
$list
as
$key
=>
$item
)
{
foreach
(
$list
as
$key
=>
$item
)
{
$totalParams
[
'create_time'
]
=
array
(
'between'
,
array
(
$start_time
.
" 00:00:00"
,
$end_time
.
" 23:59:59"
)
);
$totalParams
[
'create_time'
]
=
array
(
'between'
,
array
(
$start_time
.
" 00:00:00"
,
$end_time
.
" 23:59:59"
)
);
...
@@ -419,7 +418,7 @@ class PerformanceService
...
@@ -419,7 +418,7 @@ class PerformanceService
if
(
$sum
<=
0
){
if
(
$sum
<=
0
){
unset
(
$list
[
$key
]);
unset
(
$list
[
$key
]);
}
}
}
*/
}
}
else
{
}
else
{
...
...
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