Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ruer_cms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蔡闯
ruer_cms
Commits
cefb934d
Commit
cefb934d
authored
Jan 28, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e1101cc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/shequ/controller/Build.php
app/shequ/controller/Build.php
+4
-3
No files found.
app/shequ/controller/Build.php
View file @
cefb934d
...
...
@@ -136,14 +136,15 @@ class Build extends Base
$where
[
'layout_build_id'
]
=
$layout_build_id
;
//先查询原先的数据
$buildInfo
=
Db
::
name
(
'layout_build'
)
->
where
(
$where
)
->
find
();
echo
1
;
$code
=
Request
::
param
(
'code'
);
//查询修改的code是否存在
$is_exit
=
Db
::
name
(
'layout_build'
)
->
where
([
'village_id'
=>
$buildInfo
[
'village_id'
],
'layout_id'
=>
$buildInfo
[
'layout_id'
],
'parent_id'
=>
$buildInfo
[
'parent_id'
],
'code'
=>
$code
])
->
where
(
'layout_build_id'
,
'<>'
,
$buildInfo
[
'layout_build_id'
])
->
find
();
if
(
$is_exit
)
{
return
$this
->
returnJson
([],
'该建筑编号已存在!'
,
400
);
}
echo
2
;
exit
;
$data
[
'code'
]
=
$code
;
$data
[
'explain'
]
=
Request
::
param
(
'explain'
);
$data
[
'measure_area'
]
=
Request
::
param
(
'measure_area'
);
...
...
@@ -154,7 +155,7 @@ class Build extends Base
$data
[
'gas_price'
]
=
$where
[
'gas_price'
]
=
Request
::
param
(
'gas_price'
);
$data
[
'parking_price'
]
=
$where
[
'parking_price'
]
=
Request
::
param
(
'parking_price'
);
$data
[
'parent_id'
]
=
$buildInfo
[
'parent_id'
];
return
1
;
$is_inherit
=
Request
::
param
(
'is_inherit'
,
1
);
//物业费等是否继承上一级,1继承,0不继承
unset
(
$where
[
'layout_build_id'
]);
if
(
$is_inherit
==
1
)
{
...
...
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