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
fba6054c
Commit
fba6054c
authored
Oct 23, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩排序
parent
f225edc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
PerformanceService.php
application/api_broker/service/PerformanceService.php
+3
-3
PerformanceService.php
application/index/service/PerformanceService.php
+7
-5
No files found.
application/api_broker/service/PerformanceService.php
View file @
fba6054c
...
...
@@ -97,8 +97,8 @@ class PerformanceService
if
(
$value
[
"store_id"
]
==
$agent_info
[
"store_id"
]
||
$key
<
5
)
{
$value
[
"index_"
]
=
$key
+
1
;
$value
[
"is_my"
]
=
$agent_info
[
"store_id"
];
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
agent_id"
=>
$value
[
"agent
_id"
],
""
]);
$store_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"store_id"
=>
$value
[
"store_id"
],
"level"
=>
20
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
store_id"
=>
$agent_info
[
"store
_id"
],
""
]);
$store_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"store_id"
=>
$value
[
"store_id"
],
"level"
=>
[
"in"
,
"20,40"
]
]);
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
count
(
$store_name
)
>
0
?
$store_name
[
0
][
"name"
]
:
"---"
;
$value
[
"img"
]
=
AGENTHEADERIMGURL
.
$store_name
[
0
][
"img"
];
...
...
@@ -111,7 +111,7 @@ class PerformanceService
case
3
:
$value
[
"index_"
]
=
$key
+
1
;
$value
[
"is_my"
]
=
$agent_info
[
"district_id"
];
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
agent_id"
=>
$value
[
"agen
t_id"
]
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
district_id"
=>
$agent_info
[
"distric
t_id"
]
]);
$district_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"district_id"
=>
$value
[
"district_id"
],
"level"
=>
[
"in"
,
"30,40"
]
]);
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
count
(
$district_name
)
>
0
?
$district_name
[
0
][
"name"
]
:
"---"
;
...
...
application/index/service/PerformanceService.php
View file @
fba6054c
...
...
@@ -146,8 +146,8 @@ class PerformanceService
}
else
{
$value
[
"index_"
]
=
$total_result
-
$key
-
$num
;
}
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
agent_id"
=>
$value
[
"agent
_id"
],
""
]);
$store_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"store_id"
=>
$value
[
"store_id"
],
"level"
=>
20
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
store_id"
=>
$value
[
"store
_id"
],
""
]);
$store_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"store_id"
=>
$value
[
"store_id"
],
"level"
=>
[
"in"
,
"20,40"
]
]);
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
count
(
$store_name
)
>
0
?
$store_name
[
0
][
"name"
]
:
"---"
;
$value
[
"img"
]
=
AGENTHEADERIMGURL
.
$store_name
[
0
][
"img"
];
...
...
@@ -170,7 +170,7 @@ class PerformanceService
}
else
{
$value
[
"index_"
]
=
$total_result
-
$key
-
$num
;
}
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
agent_id"
=>
$value
[
"agen
t_id"
]
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
district_id"
=>
$value
[
"distric
t_id"
]
]);
$district_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"district_id"
=>
$value
[
"district_id"
],
"level"
=>
[
"in"
,
"30,40"
]
]);
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
count
(
$district_name
)
>
0
?
$district_name
[
0
][
"name"
]
:
"---"
;
...
...
@@ -377,6 +377,7 @@ class PerformanceService
foreach
(
$result
as
$key
=>
$value
)
{
switch
(
$type
)
{
case
1
:
echo
222
;
exit
;
$value
[
"index_"
]
=
$key
+
1
;
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"agent_id"
=>
$value
[
"agent_id"
]
]);
if
(
count
(
$info
)
>
0
)
{
...
...
@@ -389,8 +390,9 @@ class PerformanceService
}
break
;
case
2
:
echo
111
;
exit
;
$value
[
"index_"
]
=
$key
+
1
;
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
agent_id"
=>
$value
[
"agent
_id"
],
""
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
store_id"
=>
$value
[
"store
_id"
],
""
]);
$store_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"store_id"
=>
$value
[
"store_id"
],
"level"
=>
20
]);
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
count
(
$store_name
)
>
0
?
$store_name
[
0
][
"name"
]
:
"---"
;
...
...
@@ -410,7 +412,7 @@ class PerformanceService
break
;
case
3
:
$value
[
"index_"
]
=
$key
+
1
;
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
agent_id"
=>
$value
[
"agen
t_id"
]
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"
district_id"
=>
$value
[
"distric
t_id"
]
]);
$district_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"district_id"
=>
$value
[
"district_id"
],
"level"
=>
[
"in"
,
"30,40"
]
]);
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
count
(
$district_name
)
>
0
?
$district_name
[
0
][
"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