Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
Details
Activity
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
station
YeeAmosFireAutoSysRoot
Commits
bc905ed0
Commit
bc905ed0
authored
Apr 23, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉API修改
parent
86b9ea7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
PlanClassifyTreeController.java
...s/fas/business/controller/PlanClassifyTreeController.java
+19
-0
PlanClassifyTreeServiceImpl.java
...as/business/service/impl/PlanClassifyTreeServiceImpl.java
+6
-0
IPlanClassifyTreeService.java
.../fas/business/service/intfc/IPlanClassifyTreeService.java
+3
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/PlanClassifyTreeController.java
View file @
bc905ed0
...
...
@@ -67,6 +67,19 @@ public class PlanClassifyTreeController extends BaseController {
e
.
printStackTrace
();
System
.
out
.
println
(
e
.
getStackTrace
().
toString
());
}
return
CommonResponseUtil2
.
success
(
list
);
}
@ApiOperation
(
value
=
"查询分类树 - 新页面使用"
)
@RequestMapping
(
value
=
"/treeNew"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
getTreeNew
()
{
Collection
<
PlanClassifyTreeVo
>
list
=
null
;
try
{
list
=
planClassifyTreeService
.
getTree
();
}
catch
(
Exception
e
){
e
.
printStackTrace
();
System
.
out
.
println
(
e
.
getStackTrace
().
toString
());
}
//增加根节点
PlanClassifyTreeVo
tree
=
new
PlanClassifyTreeVo
();
tree
.
setId
(
0
);
...
...
@@ -77,4 +90,10 @@ public class PlanClassifyTreeController extends BaseController {
root
.
add
(
tree
);
return
CommonResponseUtil2
.
success
(
root
);
}
@ApiOperation
(
value
=
"查询分类信息 - 新页面使用"
)
@RequestMapping
(
value
=
"/getPlanClassifyInfo"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
getPlanClassifyInfo
()
{
return
CommonResponseUtil2
.
success
(
planClassifyTreeService
.
findAllInfo
());
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanClassifyTreeServiceImpl.java
View file @
bc905ed0
...
...
@@ -62,6 +62,7 @@ public class PlanClassifyTreeServiceImpl implements IPlanClassifyTreeService {
for
(
PlanClassifyTree
planClassifyTree
:
list
)
{
PlanClassifyTreeVo
planClassifyTreeVo
=
new
PlanClassifyTreeVo
();
BeanUtils
.
copyProperties
(
planClassifyTree
,
planClassifyTreeVo
);
planClassifyTreeVo
.
setParentId
(
0L
);
voList
.
add
(
planClassifyTreeVo
);
}
Map
<
Object
,
PlanClassifyTreeVo
>
map
=
Bean
.
listToMap
(
voList
,
"id"
,
PlanClassifyTree
.
class
);
...
...
@@ -73,6 +74,11 @@ public class PlanClassifyTreeServiceImpl implements IPlanClassifyTreeService {
return
TreeBuilder
.
buildByRecursive
(
completeList
,
ROOT
);
}
@Override
public
List
<
PlanClassifyTree
>
findAllInfo
()
{
return
planClassifyTreeDao
.
findAll
();
}
private
List
<
PlanClassifyTreeVo
>
buildWithParent
(
PlanClassifyTreeVo
groupModel
,
Map
<
Object
,
PlanClassifyTreeVo
>
map
)
{
List
<
PlanClassifyTreeVo
>
completeList
=
new
ArrayList
<>();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IPlanClassifyTreeService.java
View file @
bc905ed0
...
...
@@ -4,6 +4,7 @@ import com.yeejoin.amos.fas.business.vo.PlanClassifyTreeVo;
import
com.yeejoin.amos.fas.dao.entity.PlanClassifyTree
;
import
java.util.Collection
;
import
java.util.List
;
/**
* @author wjk
...
...
@@ -30,4 +31,6 @@ public interface IPlanClassifyTreeService {
PlanClassifyTree
update
(
PlanClassifyTree
model
);
PlanClassifyTree
findById
(
Long
id
);
List
<
PlanClassifyTree
>
findAllInfo
();
}
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