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
b6cfe8ca
Commit
b6cfe8ca
authored
Apr 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取部门列表修改
parent
c6d778d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ADistrict.php
application/model/ADistrict.php
+10
-2
No files found.
application/model/ADistrict.php
View file @
b6cfe8ca
...
@@ -85,8 +85,16 @@ class ADistrict extends BaseModel
...
@@ -85,8 +85,16 @@ class ADistrict extends BaseModel
if
(
$id
)
{
if
(
$id
)
{
$data
[
'district_name'
]
=
$this
->
where
(
'id'
,
$id
)
->
value
(
'district_name'
);
$data
[
'district_name'
]
=
$this
->
where
(
'id'
,
$id
)
->
value
(
'district_name'
);
$agents
=
Db
::
table
(
'a_agents'
)
->
field
(
'name,phone'
)
$agents
=
Db
::
table
(
'a_agents'
)
->
field
(
'name,phone'
)
->
where
([
'status'
=>
0
,
'level'
=>
[
'in'
,[
'30,40'
]]])
->
find
();
->
where
([
$data
[
'name'
]
=
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
'status'
=>
0
,
'level'
=>
[
'in'
,[
'30,40'
]],
'district_id'
=>
$id
])
->
find
();
if
(
$agents
!=
""
)
{
$data
[
'name'
]
=
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
}
}
else
{
}
else
{
$data
=
false
;
$data
=
false
;
}
}
...
...
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