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
5292bf59
Commit
5292bf59
authored
Mar 07, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!58
parents
2f3e8dba
cf39a591
Pipeline
#143004
passed with stages
in 3 minutes and 23 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
5 deletions
+31
-5
GridRegion.java
...rc/main/java/com/ruoyi/system/domain/grid/GridRegion.java
+6
-0
GridTreeNode.java
...in/java/com/ruoyi/system/domain/grid/vo/GridTreeNode.java
+6
-0
GridRegionMapper.java
...n/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
+2
-0
GridRegionFacadeService.java
...om/ruoyi/system/service/grid/GridRegionFacadeService.java
+8
-4
GridRegionMapper.xml
...ystem/src/main/resources/mapper/grid/GridRegionMapper.xml
+9
-1
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/grid/GridRegion.java
View file @
5292bf59
...
...
@@ -105,6 +105,12 @@ public class GridRegion implements Serializable {
*/
private
String
wgCoordinate
;
private
String
status
;
public
String
getStatus
(){
return
status
;}
public
void
setStatus
(
String
status
){
this
.
status
=
status
;}
private
static
final
long
serialVersionUID
=
1L
;
public
String
getId
()
{
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/grid/vo/GridTreeNode.java
View file @
5292bf59
...
...
@@ -38,6 +38,12 @@ public class GridTreeNode {
*/
private
List
<
GridTreeNode
>
child
=
new
ArrayList
();
private
String
status
;
public
String
getStatus
(){
return
status
;}
public
void
setStatus
(
String
status
){
this
.
status
=
status
;}
public
String
getLevel
()
{
return
level
;
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
View file @
5292bf59
...
...
@@ -53,4 +53,6 @@ public interface GridRegionMapper {
List
<
GridRegion
>
getRegionByTypeAndCode
(
@Param
(
"wgType"
)
String
wgType
,
@Param
(
"wgCodeLikes"
)
List
<
String
>
wgCodeLikes
,
@Param
(
"level"
)
String
level
);
List
<
GridRegion
>
getAllLevelThreeByType
(
@Param
(
"type"
)
String
type
,
@Param
(
"code"
)
String
code
);
List
<
GridRegion
>
getAllLevelFourByType
(
@Param
(
"type"
)
String
type
,
@Param
(
"code"
)
String
code
);
}
\ No newline at end of file
ruoyi-system/src/main/java/com/ruoyi/system/service/grid/GridRegionFacadeService.java
View file @
5292bf59
...
...
@@ -1207,13 +1207,16 @@ public class GridRegionFacadeService {
type
=
"7"
;
}
List
<
GridRegion
>
threeLevelNode
=
gridRegionMapper
.
getAllLevelThreeByType
(
type
,
gridTreeNode1
.
getCode
());
System
.
out
.
println
(
type
+
" "
+
gridTreeNode
.
getCode
());
List
<
GridTreeNode
>
threeNodes
=
new
ArrayList
<>();
if
(
type
.
equals
(
"1"
)){
System
.
out
.
println
();
}
for
(
GridRegion
gridRegion
:
threeLevelNode
){
GridTreeNode
treeNode
=
convertNodeToTree
(
gridRegion
);
List
<
GridRegion
>
fourLevelNode
=
gridRegionMapper
.
getAllLevelFourByType
(
type
,
treeNode
.
getCode
());
List
<
GridTreeNode
>
fourNodes
=
new
ArrayList
<>();
for
(
GridRegion
gridFourRegion
:
fourLevelNode
){
GridTreeNode
treeFourNode
=
convertNodeToTree
(
gridFourRegion
);
fourNodes
.
add
(
treeFourNode
);
}
treeNode
.
setChild
(
fourNodes
);
threeNodes
.
add
(
treeNode
);
}
gridTreeNode1
.
setChild
(
threeNodes
);
...
...
@@ -1236,6 +1239,7 @@ public class GridRegionFacadeService {
firstNode
.
setWgArea
(
gridRegion
.
getWgArea
());
firstNode
.
setWgCoordinate
(
gridRegion
.
getWgCoordinate
());
firstNode
.
setWgCentreCoordinate
(
gridRegion
.
getWgCentreCoordinate
());
firstNode
.
setStatus
(
gridRegion
.
getStatus
());
return
firstNode
;
}
...
...
ruoyi-system/src/main/resources/mapper/grid/GridRegionMapper.xml
View file @
5292bf59
...
...
@@ -87,7 +87,7 @@
<sql
id=
"Base_Column_List"
>
id, wg_type, wg_code, wg_name, wg_parent_id, wg_area, wg_centre_coordinate,
wg_principal, create_time, create_by, update_time, update_by, level, is_valid, ylzd1,
ylzd2, ylzd3, ylzd4, ylzd5, wg_purpose
ylzd2, ylzd3, ylzd4, ylzd5, wg_purpose
, status
</sql>
<sql
id=
"Blob_Column_List"
>
wg_coordinate
...
...
@@ -673,4 +673,12 @@
and wg_code like CONCAT(#{code}, '%')
and wg_code != #{code}
</select>
<select
id=
"getAllLevelFourByType"
resultType=
"com.ruoyi.system.domain.grid.GridRegion"
>
select
<include
refid=
"Base_Column_List"
/>
from grid_region where is_valid = '1'
and level = 4 and wg_type = #{type}
and wg_code like CONCAT(#{code}, '%')
and wg_code != #{code}
</select>
</mapper>
\ No newline at end of file
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