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
56e0021e
Commit
56e0021e
authored
Feb 07, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
district_id as id
parent
83db5e0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
District.php
application/index/controller/District.php
+1
-1
AAgents.php
application/model/AAgents.php
+0
-1
No files found.
application/index/controller/District.php
View file @
56e0021e
...
...
@@ -29,7 +29,7 @@ class District extends Basic
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$search
=
$this
->
params
[
'search'
];
$agents
=
new
AAgents
();
$field
=
'district_id
as
id,name,create_time,phone'
;
$field
=
'district_id
,
id,name,create_time,phone'
;
$where
=
''
;
$where
.=
'level in (30,40) AND status=0'
;
...
...
application/model/AAgents.php
View file @
56e0021e
...
...
@@ -180,7 +180,6 @@ public function saveList(){
$result
=
array
();
foreach
(
$data
as
$k
=>
$v
){
$result
[
$k
]
=
$v
;
$result
[
$k
][
'id'
]
=
$v
->
district_id
;
if
(
isset
(
$v
->
district_id
))
{
$district_where
[
'id'
]
=
$v
->
district_id
;
$result
[
$k
][
'district_name'
]
=
Db
::
table
(
'a_district'
)
->
where
(
$district_where
)
->
value
(
'district_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