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
c7ae60bb
Commit
c7ae60bb
authored
Feb 07, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门编辑修改
parent
32afdf2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
District.php
application/index/controller/District.php
+13
-6
No files found.
application/index/controller/District.php
View file @
c7ae60bb
...
...
@@ -59,17 +59,24 @@ class District extends Basic
* @throws \think\exception\PDOException
*/
public
function
addDistrict
()
{
if
(
$this
->
params
[
'department_name'
]
||
$this
->
params
[
'agents_id'
])
{
$district
=
new
ADistrict
();
if
(
$this
->
request
->
isPost
())
{
$district
=
new
ADistrict
();
if
(
$this
->
request
->
isPost
())
{
if
(
$this
->
params
[
'department_name'
]
||
$this
->
params
[
'agents_id'
])
{
$this
->
data
=
$district
->
addDepartmentAgents
(
$this
->
params
,
$this
->
params
[
'agents_id'
]);
}
else
{
$this
->
data
=
$district
->
getDistrictById
(
$this
->
params
[
'id'
]);
$this
->
code
=
101
;
$this
->
msg
=
'department or district is null'
;
}
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'department or district is null'
;
if
(
$this
->
params
[
'id'
])
{
$this
->
data
=
$district
->
getDistrictById
(
$this
->
params
[
'id'
]);
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'id is null'
;
}
}
return
$this
->
response
(
$this
->
code
,
$this
->
msg
,
$this
->
data
);
}
...
...
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