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
840cc3e4
Commit
840cc3e4
authored
Jun 24, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lb' into 'dev'
fix See merge request
!221
parents
6795e755
a7eca626
Pipeline
#145115
failed with stages
in 7 minutes and 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+2
-0
GridRegionMapper.java
...n/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
+2
-0
GridRegionMapper.xml
...ystem/src/main/resources/mapper/grid/GridRegionMapper.xml
+5
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
840cc3e4
...
...
@@ -191,6 +191,7 @@ public class RegionController extends BaseController {
}
else
{
body
.
setStatus
(
level
);
}
body
.
setPosition
(
gridRegionMapper
.
selectMaxPosition
(
body
.
getWgParentId
())+
1
);
return
gridRegionFacadeService
.
commit
(
body
,
"insert"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
@@ -1032,6 +1033,7 @@ public class RegionController extends BaseController {
}
else
{
body
.
setStatus
(
level
);
}
body
.
setPosition
(
gridRegionMapper
.
selectMaxPosition
(
body
.
getWgParentId
())+
1
);
return
gridRegionFacadeService
.
commit
(
body
,
"insert"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
ruoyi-system/src/main/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
View file @
840cc3e4
...
...
@@ -92,4 +92,6 @@ public interface GridRegionMapper {
int
updatePositionByWgCodes
(
@Param
(
"wgCode"
)
String
wgCode
);
int
countByFourthCode
(
String
code
);
int
selectMaxPosition
(
@Param
(
"wgCode"
)
String
wgCode
);
}
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/grid/GridRegionMapper.xml
View file @
840cc3e4
...
...
@@ -783,5 +783,10 @@
select count(*) from house_resource
where four = #{code} or three = #{code}
</select>
<select
id=
"selectMaxPosition"
resultType=
"java.lang.Integer"
>
SELECT MAX(position)
FROM grid_region
WHERE wg_parent_id = #{wgCode}
</select>
</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