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
5f2457d1
Commit
5f2457d1
authored
Jan 28, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改建筑信息接口
parent
2bda122e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/shequ/controller/Build.php
app/shequ/controller/Build.php
+3
-2
No files found.
app/shequ/controller/Build.php
View file @
5f2457d1
...
...
@@ -156,9 +156,10 @@ class Build extends Base
$data
[
'parent_id'
]
=
$buildInfo
[
'parent_id'
];
$is_inherit
=
Request
::
param
(
'is_inherit'
,
1
);
//物业费等是否继承上一级,1继承,0不继承
unset
(
$where
[
'layout_build_id'
]);
if
(
$is_inherit
==
1
)
{
if
(
$data
[
'parent_id'
]
==
0
)
{
$is_find
=
Db
::
name
(
'house_village'
)
->
where
([
'village_id'
=>
$this
->
village_id
])
->
where
(
$where
)
->
find
();
}
else
{
$is_find
=
Db
::
name
(
'layout_build'
)
->
where
([
'village_id'
=>
$this
->
village_id
,
'layout_build_id'
=>
$data
[
'parent_id'
]])
->
where
(
$where
)
->
find
();
...
...
@@ -172,7 +173,7 @@ class Build extends Base
if
(
$data
[
'property_price'
]
!=
$buildInfo
[
'property_price'
]
||
$data
[
'water_price'
]
!=
$buildInfo
[
'water_price'
]
||
$data
[
'electric_price'
]
!=
$buildInfo
[
'electric_price'
]
||
$data
[
'gas_price'
]
!=
$buildInfo
[
'gas_price'
]
||
$data
[
'parking_price'
]
!=
$buildInfo
[
'parking_price'
]
)
{
//先修改下面的建筑,然后在修改其他
$ids
=
$this
->
findBuildId
(
$layout_build_id
);
unset
(
$where
[
'layout_build_id'
]);
Db
::
name
(
'layout_build'
)
->
where
(
'layout_build_id'
,
'in'
,
$ids
)
->
save
(
$where
);
}
...
...
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