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
254fdffc
Commit
254fdffc
authored
May 20, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店业绩bug
parent
f1fd216b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
PerformanceService.php
application/api_broker/service/PerformanceService.php
+2
-1
AAgents.php
application/model/AAgents.php
+1
-0
No files found.
application/api_broker/service/PerformanceService.php
View file @
254fdffc
...
@@ -434,8 +434,9 @@ class PerformanceService
...
@@ -434,8 +434,9 @@ class PerformanceService
if
(
count
(
$list
)
>
0
)
{
if
(
count
(
$list
)
>
0
)
{
foreach
(
$list
as
$key
=>
$item
)
{
foreach
(
$list
as
$key
=>
$item
)
{
$fields
=
"
a
.name,b.store_name"
;
$fields
=
"
c
.name,b.store_name"
;
$where_
[
"a.store_id"
]
=
$item
[
"store_id"
];
$where_
[
"a.store_id"
]
=
$item
[
"store_id"
];
$where_
[
"c.id"
]
=
$item
[
"agent_id"
];
$info
=
$this
->
agentModel
->
getStoreOrAgentInfo
(
$fields
,
$where_
);
$info
=
$this
->
agentModel
->
getStoreOrAgentInfo
(
$fields
,
$where_
);
if
(
count
(
$info
)
>
0
)
{
if
(
count
(
$info
)
>
0
)
{
$list
[
$key
][
"store_name"
]
=
$info
[
0
][
"store_name"
];
$list
[
$key
][
"store_name"
]
=
$info
[
0
][
"store_name"
];
...
...
application/model/AAgents.php
View file @
254fdffc
...
@@ -568,6 +568,7 @@ class AAgents extends BaseModel
...
@@ -568,6 +568,7 @@ class AAgents extends BaseModel
->
field
(
$field
)
->
field
(
$field
)
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"a_store b"
,
"a.store_id = b.id"
,
"left"
)
->
join
(
"a_store b"
,
"a.store_id = b.id"
,
"left"
)
->
join
(
"a_agents c"
,
"a.store_id = c.store_id"
,
"left"
)
->
where
(
$params
)
->
where
(
$params
)
->
where
(
'a.level'
,
[
'='
,
20
],
[
'='
,
40
],
'or'
)
->
where
(
'a.level'
,
[
'='
,
20
],
[
'='
,
40
],
'or'
)
->
select
();
->
select
();
...
...
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