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
ce944c28
Commit
ce944c28
authored
Aug 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
a13b9e47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
PerformanceService.php
application/api_broker/service/PerformanceService.php
+4
-8
No files found.
application/api_broker/service/PerformanceService.php
View file @
ce944c28
...
...
@@ -24,8 +24,6 @@ class PerformanceService
{
private
$totalModel
;
private
$agentModel
;
private
$agentsModel
;
private
$tAgentTotalModel
;
private
$houseModel
;
private
$userModel
;
private
$bargainModel
;
...
...
@@ -39,8 +37,6 @@ class PerformanceService
{
$this
->
totalModel
=
new
TAgentTotalModel
();
$this
->
agentModel
=
new
AAgents
();
$this
->
agentsModel
=
new
AAgents
();
$this
->
tAgentTotalModel
=
new
TAgentTotalModel
();
$this
->
houseModel
=
new
GHouses
();
$this
->
userModel
=
new
Users
();
$this
->
bargainModel
=
new
OBargainModel
();
...
...
@@ -396,8 +392,8 @@ class PerformanceService
$params
[
"agent_id"
]
=
array
(
"in"
,
$agent_ids
);
$list
=
[];
$now_date
=
date
(
"Y-m-d"
,
time
());
if
(
$start_time
==
$now_date
&&
$end_time
==
$now_date
)
{
/*
$now_date = date("Y-m-d", time());
if ($start_time == $now_date && $end_time == $now_date) {
*/
$param
[
"id"
]
=
array
(
"in"
,
$agent_ids
);
// 1.获取所有经纪人
...
...
@@ -441,7 +437,7 @@ class PerformanceService
}
}
else
{
/*
} else {
$field = "store_id,agent_id,sum(add_house_num) as add_house_num,sum(add_user_num) as add_user_num,sum(march_in_num) as march_in_num,
sum(performance) as performance,sum(official_receipts) as official_receipts";
...
...
@@ -450,7 +446,7 @@ class PerformanceService
$order = "total_time desc";
$list = $this->totalModel->getTotalByAgentId($field, $params, $is_store, $order);
}
}
*/
if
(
count
(
$list
)
>
0
)
{
foreach
(
$list
as
$key
=>
$item
)
{
...
...
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