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 528a3fe4
authored
Jul 12, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修订jpa接口
1 parent
bbf7f4a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/SkillInfoDao.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/PublicServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/dao/SkillInfoDao.java
View file @
528a3fe
...
@@ -6,5 +6,5 @@ import org.springframework.data.jpa.repository.JpaRepository;
...
@@ -6,5 +6,5 @@ import org.springframework.data.jpa.repository.JpaRepository;
import
java.util.List
;
import
java.util.List
;
public
interface
SkillInfoDao
extends
JpaRepository
<
SkillInfoEntity
,
Long
>
{
public
interface
SkillInfoDao
extends
JpaRepository
<
SkillInfoEntity
,
Long
>
{
List
<
SkillInfoEntity
>
get
All
();
List
<
SkillInfoEntity
>
find
All
();
}
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/PublicServiceImpl.java
View file @
528a3fe
...
@@ -51,7 +51,7 @@ public class PublicServiceImpl implements PublicService {
...
@@ -51,7 +51,7 @@ public class PublicServiceImpl implements PublicService {
@Override
@Override
public
Result
<?>
getSkillTree
()
{
public
Result
<?>
getSkillTree
()
{
List
<
PublicSkillTreeDTO
.
Content
>
contents
=
skillInfoDao
.
get
All
().
stream
().
map
(
entity
->
{
List
<
PublicSkillTreeDTO
.
Content
>
contents
=
skillInfoDao
.
find
All
().
stream
().
map
(
entity
->
{
return
new
PublicSkillTreeDTO
.
Content
()
return
new
PublicSkillTreeDTO
.
Content
()
.
setBrand
(
entity
.
getBrand
())
.
setBrand
(
entity
.
getBrand
())
.
setType
(
entity
.
getType
())
.
setType
(
entity
.
getType
())
...
...
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