Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
engine-class-work
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
liuchengjiu
engine-class-work
Commits
39b2156a
Commit
39b2156a
authored
Feb 22, 2022
by
Mindfaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
71cb2e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
StudentPointService.java
...ploring/engine/server/db/service/StudentPointService.java
+1
-2
No files found.
server-db/src/main/java/cn/exploring/engine/server/db/service/StudentPointService.java
View file @
39b2156a
...
@@ -28,11 +28,10 @@ public class StudentPointService {
...
@@ -28,11 +28,10 @@ public class StudentPointService {
public
Map
selectPointByWeb
(
String
studentName
,
String
studentUniqueId
,
Integer
classId
,
String
startTime
,
String
endTime
,
Integer
page
,
Integer
limit
,
String
sort
,
String
order
)
{
public
Map
selectPointByWeb
(
String
studentName
,
String
studentUniqueId
,
Integer
classId
,
String
startTime
,
String
endTime
,
Integer
page
,
Integer
limit
,
String
sort
,
String
order
)
{
List
<
Map
>
dataList
=
specialSqlMapper
.
selectPoint
(
studentName
,
studentUniqueId
,
classId
,
startTime
,
endTime
,
page
,
limit
,
sort
,
order
);
List
<
Map
>
dataList
=
specialSqlMapper
.
selectPoint
(
studentName
,
studentUniqueId
,
classId
,
startTime
,
endTime
,
page
,
limit
,
sort
,
order
);
Map
<
String
,
String
>
countInfoData
=
specialSqlMapper
.
selectPointCount
(
studentName
,
studentUniqueId
,
classId
,
startTime
,
endTime
);
Map
<
String
,
String
>
countInfoData
=
specialSqlMapper
.
selectPointCount
(
studentName
,
studentUniqueId
,
classId
,
startTime
,
endTime
);
Long
countInfo
=
StringUtils
.
isEmpty
(
countInfoData
.
get
(
"count_info"
))
?
0L
:
Long
.
parseLong
(
countInfoData
.
get
(
"count_info"
).
toString
());
List
<
Map
>
targetDataList
=
dataList
.
stream
().
map
((
Function
<
Map
,
Map
>)
Util:
:
exchangeMapKeyName
).
collect
(
Collectors
.
toList
());
List
<
Map
>
targetDataList
=
dataList
.
stream
().
map
((
Function
<
Map
,
Map
>)
Util:
:
exchangeMapKeyName
).
collect
(
Collectors
.
toList
());
return
new
HashMap
()
{{
return
new
HashMap
()
{{
put
(
"items"
,
targetDataList
);
put
(
"items"
,
targetDataList
);
put
(
"total"
,
countInfo
);
put
(
"total"
,
StringUtils
.
isEmpty
(
countInfoData
.
get
(
"count_info"
))
?
0L
:
countInfoData
.
get
(
"count_info"
)
);
}};
}};
}
}
...
...
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