Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elleai
Project
Project
Details
Activity
Releases
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
ai-tech
E
ellehuis-group
backend
elleai
Commits
63f1090e
Commit
63f1090e
authored
Dec 13, 2024
by
yangyw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 过滤资料库分类
parent
5b89bf05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
AppExamineService.java
.../breeze/elleai/application/service/AppExamineService.java
+2
-4
ExamineServiceImpl.java
...ze/elleai/domain/sparring/service/ExamineServiceImpl.java
+1
-0
No files found.
src/main/java/cn/breeze/elleai/application/service/AppExamineService.java
View file @
63f1090e
...
...
@@ -14,6 +14,7 @@ import cn.breeze.elleai.exception.InternalException;
import
cn.breeze.elleai.util.Codes
;
import
cn.breeze.elleai.util.UserPrincipal
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.lang.Assert
;
import
cn.hutool.core.lang.UUID
;
...
...
@@ -917,14 +918,11 @@ public class AppExamineService {
WikiCategoryRequestModel
requestModel
=
BeanUtil
.
copyProperties
(
request
,
WikiCategoryRequestModel
.
class
);
requestModel
.
setStatus
(
1
);
requestModel
.
setPageSize
(
1000
);
List
<
Integer
>
categoryIdList
=
examineService
.
wikiCategoryUseableList
();
requestModel
.
setIdList
(
categoryIdList
);
Page
<
WikiCategoryResponseModel
>
page
=
examineService
.
wikiCategoryPaginQuery
(
requestModel
);
PageResult
<
WikiCategoryMobileDto
>
pageResult
=
PageResult
.
of
(
request
.
getPageNo
(),
request
.
getPageSize
(),
(
int
)
page
.
getTotalRow
(),
null
);
if
(
CollectionUtil
.
isNotEmpty
(
page
.
getRecords
()))
{
List
<
WikiCategoryMobileDto
>
dtoList
=
page
.
getRecords
().
stream
().
map
(
v
->
{
WikiCategoryMobileDto
dto
=
BeanUtil
.
copyProperties
(
v
,
WikiCategoryMobileDto
.
class
);
...
...
src/main/java/cn/breeze/elleai/domain/sparring/service/ExamineServiceImpl.java
View file @
63f1090e
...
...
@@ -604,6 +604,7 @@ public class ExamineServiceImpl implements ExamineService {
QueryWrapper
queryWrapper
=
QueryWrapper
.
create
()
.
select
(
WIKI_ENTITY
.
WIKI_CATEGORY_ID
)
.
where
(
WIKI_ENTITY
.
DELETED
.
eq
(
0
))
.
and
(
WIKI_ENTITY
.
STATUS
.
eq
(
1
))
.
and
(
WIKI_ENTITY
.
WIKI_CATEGORY_ID
.
isNotNull
());
queryWrapper
.
groupBy
(
WIKI_ENTITY
.
WIKI_CATEGORY_ID
);
...
...
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