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
377e6b5f
Commit
377e6b5f
authored
Feb 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
level 门店列表
parent
8a94d02a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
AStore.php
application/model/AStore.php
+1
-1
No files found.
application/model/AStore.php
View file @
377e6b5f
...
...
@@ -132,7 +132,7 @@ class AStore extends BaseModel
$data
[
$k
][
'district_name'
]
=
Db
::
table
(
'a_district'
)
->
where
(
'id'
,
$v
->
district_id
)
->
value
(
'district_name'
);
$data
[
$k
][
'agents_name'
]
=
Db
::
table
(
'a_agents'
)
->
field
(
'concat_ws("-",name,phone) as name'
)
->
where
([
'status'
=>
0
,
'level'
=>
[
'in'
,
'20,40'
],
'store_id'
=>
$v
->
id
])
->
find
();
$data
[
$k
][
'agents_name'
]
=
$data
[
$k
][
'agents_name'
][
'name'
]
?
$data
[
$k
][
'agents_name'
][
'name'
]
:
""
;
$data
[
$k
][
'agents_total'
]
=
Db
::
table
(
'a_agents'
)
->
where
([
'status'
=>
0
,
'store_id'
=>
$v
->
id
])
->
count
();
$data
[
$k
][
'agents_total'
]
=
Db
::
table
(
'a_agents'
)
->
where
([
'status'
=>
0
,
'store_id'
=>
$v
->
id
,
'level'
=>
10
])
->
count
();
}
}
...
...
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