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
976d620b
Commit
976d620b
authored
Jun 01, 2018
by
clone
Committed by
hujun
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
9678de15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
PerformanceService.php
application/api_broker/service/PerformanceService.php
+5
-7
AAgents.php
application/model/AAgents.php
+1
-1
No files found.
application/api_broker/service/PerformanceService.php
View file @
976d620b
...
@@ -93,10 +93,9 @@ class PerformanceService
...
@@ -93,10 +93,9 @@ class PerformanceService
$value
[
"is_my"
]
=
$agent_info
[
"store_id"
];
$value
[
"is_my"
]
=
$agent_info
[
"store_id"
];
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"agent_id"
=>
$value
[
"agent_id"
]
,
""
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"agent_id"
=>
$value
[
"agent_id"
]
,
""
]);
$store_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"store_id"
=>
$value
[
"store_id"
],
"level"
=>
20
]);
$store_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"store_id"
=>
$value
[
"store_id"
],
"level"
=>
20
]);
$name
=
count
(
$store_name
)
>
0
?
$store_name
[
0
][
"name"
]
:
"---"
;
if
(
count
(
$info
)
>
0
)
{
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
count
(
$store_name
)
>
0
?
$store_name
[
0
][
"name"
]
:
"---"
;
$value
[
"name"
]
=
$name
;
$value
[
"img"
]
=
AGENTHEADERIMGURL
.
$store_name
[
0
][
"img"
];
$value
[
"img"
]
=
AGENTHEADERIMGURL
.
$info
[
0
][
"img"
];
$value
[
"store_name"
]
=
$info
[
0
][
"store_name"
];
$value
[
"store_name"
]
=
$info
[
0
][
"store_name"
];
$value
[
"district_name"
]
=
$info
[
0
][
"district_name"
];
$value
[
"district_name"
]
=
$info
[
0
][
"district_name"
];
}
}
...
@@ -108,10 +107,9 @@ class PerformanceService
...
@@ -108,10 +107,9 @@ class PerformanceService
$value
[
"is_my"
]
=
$agent_info
[
"district_id"
];
$value
[
"is_my"
]
=
$agent_info
[
"district_id"
];
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"agent_id"
=>
$value
[
"agent_id"
]
]);
$info
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$field
,
[
"agent_id"
=>
$value
[
"agent_id"
]
]);
$district_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"district_id"
=>
$value
[
"district_id"
],
"level"
=>
[
"in"
,
"30,40"
]]);
$district_name
=
$this
->
agentModel
->
getStoreOrDistrict
([
"district_id"
=>
$value
[
"district_id"
],
"level"
=>
[
"in"
,
"30,40"
]]);
$name
=
count
(
$district_name
)
>
0
?
$district_name
[
0
][
"name"
]
:
"---"
;
if
(
count
(
$info
)
>
0
)
{
if
(
count
(
$info
)
>
0
)
{
$value
[
"name"
]
=
$name
;
$value
[
"name"
]
=
count
(
$district_name
)
>
0
?
$district_name
[
0
][
"name"
]
:
"---"
;
$value
[
"img"
]
=
AGENTHEADERIMGURL
.
$
info
[
0
][
"img"
];
$value
[
"img"
]
=
AGENTHEADERIMGURL
.
$
district_name
[
0
][
"img"
];
$value
[
"store_name"
]
=
$info
[
0
][
"store_name"
];
$value
[
"store_name"
]
=
$info
[
0
][
"store_name"
];
$value
[
"district_name"
]
=
$info
[
0
][
"district_name"
];
$value
[
"district_name"
]
=
$info
[
0
][
"district_name"
];
}
}
...
...
application/model/AAgents.php
View file @
976d620b
...
@@ -446,7 +446,7 @@ class AAgents extends BaseModel
...
@@ -446,7 +446,7 @@ class AAgents extends BaseModel
public
function
getStoreOrDistrict
(
$params
){
public
function
getStoreOrDistrict
(
$params
){
$result
=
Db
::
table
(
$this
->
table
)
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
"id,name"
)
->
field
(
"id,name
,img
"
)
->
where
(
$params
)
->
where
(
$params
)
->
select
();
->
select
();
//echo Db::table($this->table)->getLastSql();
//echo Db::table($this->table)->getLastSql();
...
...
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