Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
Project
Project
Details
Activity
Releases
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
yichengstreet
yichengstreet-be
Commits
e98666a8
Commit
e98666a8
authored
May 15, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!207
parents
4126242c
d7293d49
Pipeline
#144641
failed with stages
in 28 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+8
-5
GridRegionMapper.xml
...ystem/src/main/resources/mapper/grid/GridRegionMapper.xml
+1
-1
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
e98666a8
...
@@ -872,10 +872,10 @@ public class RegionController extends BaseController {
...
@@ -872,10 +872,10 @@ public class RegionController extends BaseController {
GridRegionExample
.
Criteria
criteria1
=
example1
.
createCriteria
();
GridRegionExample
.
Criteria
criteria1
=
example1
.
createCriteria
();
criteria1
.
andIsValidEqualTo
(
"1"
);
criteria1
.
andIsValidEqualTo
(
"1"
);
criteria1
.
andWgParentIdEqualTo
(
wgCode
);
criteria1
.
andWgParentIdEqualTo
(
wgCode
);
long
count
=
gridRegionMapper
.
countByExample
(
example1
);
//
long count = gridRegionMapper.countByExample(example1);
if
(
count
>
0
){
//
if(count>0){
throw
new
RuntimeException
(
"当前菜单存在下级菜单,无法删除"
);
//
throw new RuntimeException("当前菜单存在下级菜单,无法删除");
}
//
}
if
(
gridRegionMapper
.
countByFourthCode
(
wgCode
)>
0
){
if
(
gridRegionMapper
.
countByFourthCode
(
wgCode
)>
0
){
throw
new
RuntimeException
(
"当前菜单存在房源,无法删除"
);
throw
new
RuntimeException
(
"当前菜单存在房源,无法删除"
);
}
}
...
@@ -886,7 +886,10 @@ public class RegionController extends BaseController {
...
@@ -886,7 +886,10 @@ public class RegionController extends BaseController {
criteria
.
andIsValidEqualTo
(
"1"
);
criteria
.
andIsValidEqualTo
(
"1"
);
criteria
.
andIdEqualTo
(
id
);
criteria
.
andIdEqualTo
(
id
);
return
AjaxResult
.
success
(
gridRegionMapper
.
deleteByExample
(
example
));
gridRegionMapper
.
deleteByExample
(
example
);
gridRegionMapper
.
deleteByExample
(
example1
);
return
AjaxResult
.
success
();
}
}
@RequestMapping
(
value
=
"/changeName"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/changeName"
,
method
=
RequestMethod
.
GET
)
...
...
ruoyi-system/src/main/resources/mapper/grid/GridRegionMapper.xml
View file @
e98666a8
...
@@ -781,7 +781,7 @@
...
@@ -781,7 +781,7 @@
<select
id=
"countByFourthCode"
resultType=
"Integer"
>
<select
id=
"countByFourthCode"
resultType=
"Integer"
>
select count(*) from house_resource
select count(*) from house_resource
where four = #{code}
where four = #{code}
or three = #{code}
</select>
</select>
</mapper>
</mapper>
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