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
fe09bdf4
Commit
fe09bdf4
authored
Dec 17, 2024
by
陈立彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.移动端对练列表增加资料列表返回
parent
033259bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
AppExamineService.java
.../breeze/elleai/application/service/AppExamineService.java
+14
-0
No files found.
src/main/java/cn/breeze/elleai/application/service/AppExamineService.java
View file @
fe09bdf4
...
...
@@ -689,6 +689,19 @@ public class AppExamineService {
PageResult
<
ExamineMobileDto
>
pageResult
=
PageResult
.
of
(
request
.
getPageNo
(),
request
.
getPageSize
(),
(
int
)
page
.
getTotalRow
(),
null
);
if
(
CollectionUtil
.
isNotEmpty
(
page
.
getRecords
()))
{
// 对练场景关联资料
List
<
WikiListMobileDto
>
wikiList
=
Lists
.
newArrayList
();
WikiRequestModel
wkRequest
=
new
WikiRequestModel
();
wkRequest
.
setSceneCategoryId
(
requestModel
.
getCategoryId
());
List
<
WikiResponseModel
>
wikiResponseModels
=
examineService
.
wikiList
(
wkRequest
);
if
(
CollectionUtil
.
isNotEmpty
(
wikiResponseModels
))
{
wikiList
=
wikiResponseModels
.
stream
().
map
(
v
->
{
WikiListMobileDto
dto
=
BeanUtil
.
copyProperties
(
v
,
WikiListMobileDto
.
class
);
return
dto
;
}).
collect
(
Collectors
.
toList
());
}
List
<
WikiListMobileDto
>
finalWikiList
=
wikiList
;
List
<
ExamineMobileDto
>
dtoList
=
page
.
getRecords
().
stream
().
map
(
v
->
{
ExamineMobileDto
dto
=
BeanUtil
.
copyProperties
(
v
,
ExamineMobileDto
.
class
);
...
...
@@ -719,6 +732,7 @@ public class AppExamineService {
dto
.
setMaxOverallScore
(
maxOverallScore
.
intValue
());
dto
.
setExamCount
(
examCount
);
dto
.
setPracticeCount
(
practiceCount
);
dto
.
setWikiList
(
finalWikiList
);
return
dto
;
}).
collect
(
Collectors
.
toList
());
...
...
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