Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
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
quanku
qk_backend
Commits
6d38479f
Commit
6d38479f
authored
Sep 05, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
类目介绍
parent
a892a818
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/CategoryServiceImpl.java
...main/java/com/wwdz/ch/admin/impl/CategoryServiceImpl.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/CategoryDaoImpl.java
...ao/src/main/java/com/wwdz/ch/db/impl/CategoryDaoImpl.java
+3
-3
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/CategoryServiceImpl.java
View file @
6d38479f
...
...
@@ -50,7 +50,7 @@ public class CategoryServiceImpl implements CategoryService {
@Override
public
List
<
CategoryVo
>
querySelective
(
String
id
,
String
name
,
Integer
page
,
Integer
size
,
String
sort
,
String
order
)
{
List
<
Category
>
collectList
=
categoryDao
.
querySelective
(
id
,
name
,
page
,
size
,
sort
,
order
);
List
<
CategoryVo
>
data
=
collectList
.
parallelS
tream
().
map
(
a
->
new
CategoryVo
(
a
)).
collect
(
Collectors
.
toList
());
List
<
CategoryVo
>
data
=
collectList
.
s
tream
().
map
(
a
->
new
CategoryVo
(
a
)).
collect
(
Collectors
.
toList
());
return
data
;
}
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/CategoryDaoImpl.java
View file @
6d38479f
...
...
@@ -47,13 +47,13 @@ public class CategoryDaoImpl implements CategoryDao {
criteria
.
andNameLike
(
"%"
+
dto
.
getName
()
+
"%"
);
}
criteria
.
andIsDeletedEqualTo
(
false
);
return
categoryMapper
.
selectByExample
(
example
);
return
categoryMapper
.
selectByExample
WithBLOBs
(
example
);
}
public
List
<
Category
>
queryByPid
(
Integer
pid
)
{
CategoryExample
example
=
new
CategoryExample
();
example
.
or
().
andPidEqualTo
(
pid
).
andIsDeletedEqualTo
(
false
);
return
categoryMapper
.
selectByExample
(
example
);
return
categoryMapper
.
selectByExample
WithBLOBs
(
example
);
}
public
Category
findById
(
Integer
id
)
{
...
...
@@ -63,7 +63,7 @@ public class CategoryDaoImpl implements CategoryDao {
public
Category
findByName
(
String
name
)
{
CategoryExample
example
=
new
CategoryExample
();
example
.
or
().
andNameEqualTo
(
name
).
andIsDeletedEqualTo
(
false
);
return
categoryMapper
.
selectOneByExample
(
example
);
return
categoryMapper
.
selectOneByExample
WithBLOBs
(
example
);
}
@Override
...
...
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