Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bd20f6a8
authored
Aug 03, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
a988a1c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/SkillGroupCategoryServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/SkillGroupCategoryServiceImpl.java
View file @
bd20f6a
package
com
.
dituhui
.
pea
.
order
.
service
.
impl
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.dao.SkillGroup
MP
Dao
;
import
com.dituhui.pea.order.entity.SkillGroup
;
import
com.dituhui.pea.order.dao.SkillGroupDao
;
import
com.dituhui.pea.order.entity.SkillGroup
Entity
;
import
com.dituhui.pea.order.service.SkillGroupCategoryService
;
import
lombok.Data
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -17,15 +17,15 @@ import java.util.stream.Collectors;
public
class
SkillGroupCategoryServiceImpl
implements
SkillGroupCategoryService
{
@Autowired
SkillGroup
MPDao
skillGroupMP
Dao
;
SkillGroup
Dao
skillGroup
Dao
;
@Override
public
Result
<?>
querySkillGroupCategoryService
()
{
List
<
SkillGroup
>
records
=
skillGroupMPDao
.
selectList
(
null
).
stream
().
sorted
(
Comparator
.
comparing
(
SkillGroup:
:
getCategory
)).
collect
(
Collectors
.
toList
());
List
<
SkillGroup
Entity
>
records
=
skillGroupDao
.
findAll
(
).
stream
().
sorted
(
Comparator
.
comparing
(
SkillGroup
Entity
:
:
getCategory
)).
collect
(
Collectors
.
toList
());
List
<
Category
>
items
=
new
ArrayList
<>();
for
(
SkillGroup
r
:
records
)
{
for
(
SkillGroup
Entity
r
:
records
)
{
items
.
add
(
new
Category
(
r
.
getSkillGroupCode
(),
r
.
getSkillGroup
(),
r
.
getCategory
()));
}
Response
res
=
new
Response
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment