Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
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
tianchao
gf_back
Commits
ea8ed31a
Commit
ea8ed31a
authored
Nov 22, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
9d7b4a5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
44 deletions
+9
-44
C02-system/pps-core-system/src/main/java/pps/core/system/service/SysAreaService.java
...src/main/java/pps/core/system/service/SysAreaService.java
+2
-2
C02-system/pps-core-system/src/main/java/pps/core/system/service/data/sys_area/GetSysAreaViewOutputTree.java
...ystem/service/data/sys_area/GetSysAreaViewOutputTree.java
+7
-42
No files found.
C02-system/pps-core-system/src/main/java/pps/core/system/service/SysAreaService.java
View file @
ea8ed31a
package
pps.core.system.service
;
package
pps.core.system.service
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
@@ -62,8 +63,7 @@ public class SysAreaService {
...
@@ -62,8 +63,7 @@ public class SysAreaService {
}
}
return
XListResult
.
success
(
resultTree
);
return
XListResult
.
success
(
resultTree
);
}
}
List
<
GetSysAreaViewOutputTree
>
resultTree
=
XCopyUtils
.
copyNewList
(
sysAreaCaches
,
GetSysAreaViewOutputTree
.
class
);
return
XListResult
.
success
(
BeanUtil
.
copyToList
(
sysAreaCaches
,
GetSysAreaViewOutputTree
.
class
));
return
XListResult
.
success
(
resultTree
);
}
}
private
List
<
SysAreaCache
>
selectSysAreaTree
(
XContext
context
,
GetSysAreaInput
input
)
{
private
List
<
SysAreaCache
>
selectSysAreaTree
(
XContext
context
,
GetSysAreaInput
input
)
{
...
...
C02-system/pps-core-system/src/main/java/pps/core/system/service/data/sys_area/GetSysAreaViewOutputTree.java
View file @
ea8ed31a
package
pps.core.system.service.data.sys_area
;
package
pps.core.system.service.data.sys_area
;
import
lombok.Data
;
import
xstartup.annotation.XText
;
import
xstartup.annotation.XText
;
import
java.io.Serializable
;
import
java.util.List
;
import
java.util.List
;
public
class
GetSysAreaViewOutputTree
{
@Data
public
class
GetSysAreaViewOutputTree
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
348031788223716089L
;
private
Integer
id
;
private
Integer
id
;
private
String
name
;
private
String
name
;
...
@@ -15,45 +21,4 @@ public class GetSysAreaViewOutputTree {
...
@@ -15,45 +21,4 @@ public class GetSysAreaViewOutputTree {
@XText
(
"子集"
)
@XText
(
"子集"
)
private
List
<
GetSysAreaViewOutputTree
>
children
;
private
List
<
GetSysAreaViewOutputTree
>
children
;
public
List
<
GetSysAreaViewOutputTree
>
getChildren
()
{
return
children
;
}
public
void
setChildren
(
List
<
GetSysAreaViewOutputTree
>
children
)
{
this
.
children
=
children
;
}
public
Integer
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Integer
value
)
{
this
.
id
=
value
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
value
)
{
this
.
name
=
value
;
}
public
Integer
getParentId
()
{
return
this
.
parentId
;
}
public
void
setParentId
(
Integer
value
)
{
this
.
parentId
=
value
;
}
public
Integer
getLev
()
{
return
this
.
lev
;
}
public
void
setLev
(
Integer
value
)
{
this
.
lev
=
value
;
}
}
}
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