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
9aa9e0d7
Commit
9aa9e0d7
authored
Oct 22, 2024
by
陈立彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无对练的场景分类过滤
parent
10c477ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
AppExamineService.java
.../breeze/elleai/application/service/AppExamineService.java
+2
-1
ExamineService.java
...breeze/elleai/domain/sparring/service/ExamineService.java
+2
-0
ExamineServiceImpl.java
...ze/elleai/domain/sparring/service/ExamineServiceImpl.java
+9
-0
No files found.
src/main/java/cn/breeze/elleai/application/service/AppExamineService.java
View file @
9aa9e0d7
...
...
@@ -155,7 +155,8 @@ public class AppExamineService {
PageResult
<
ExamineSceneCategoryMobileDto
>
pageResult
=
PageResult
.
of
(
request
.
getPageNo
(),
request
.
getPageSize
(),
(
int
)
page
.
getTotalRow
(),
null
);
if
(
CollectionUtil
.
isNotEmpty
(
page
.
getRecords
()))
{
List
<
ExamineSceneCategoryMobileDto
>
dtoList
=
page
.
getRecords
().
stream
().
map
(
v
->
{
List
<
ExamineSceneCategoryMobileDto
>
dtoList
=
page
.
getRecords
().
stream
().
filter
(
v
->
examineService
.
countExamine
(
v
.
getId
())
>
0
)
.
map
(
v
->
{
ExamineSceneCategoryMobileDto
dto
=
BeanUtil
.
copyProperties
(
v
,
ExamineSceneCategoryMobileDto
.
class
);
return
dto
;
}).
collect
(
Collectors
.
toList
());
...
...
src/main/java/cn/breeze/elleai/domain/sparring/service/ExamineService.java
View file @
9aa9e0d7
...
...
@@ -76,6 +76,8 @@ public interface ExamineService {
void
saveExamine
(
ExamineSaveModel
dto
);
long
countExamine
(
Integer
sceneCategoryId
);
/***************************************** 对练题目关联 *****************************************/
List
<
ExamineQaXrefResponseModel
>
examineQaXrefList
(
Integer
examineId
);
...
...
src/main/java/cn/breeze/elleai/domain/sparring/service/ExamineServiceImpl.java
View file @
9aa9e0d7
...
...
@@ -370,6 +370,15 @@ public class ExamineServiceImpl implements ExamineService {
dto
.
setId
(
entity
.
getId
());
}
@Override
public
long
countExamine
(
Integer
sceneCategoryId
)
{
QueryWrapper
queryWrapper
=
QueryWrapper
.
create
()
.
where
(
EXAMINE_ENTITY
.
CATEGORY_ID
.
eq
(
sceneCategoryId
))
.
and
(
EXAMINE_ENTITY
.
STATUS
.
eq
(
1
))
.
and
(
EXAMINE_ENTITY
.
DELETED
.
eq
(
0
));
return
examineMapper
.
selectCountByQuery
(
queryWrapper
);
}
@Override
public
List
<
ExamineQaXrefResponseModel
>
examineQaXrefList
(
Integer
examineId
)
{
QueryWrapper
queryWrapper
=
QueryWrapper
.
create
()
...
...
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