Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-riskmanage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 134d21af
authored
Dec 11, 2025
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
考试排名,分数相同排名相同
1 parent
39ba7284
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/service/learningcenter/LearningCenterLevelExamService.java
rpc-dj-riskmanage/src/main/java/cn/com/glsx/dj/riskmanage/service/learningcenter/LearningCenterLevelExamService.java
View file @
134d21a
...
@@ -615,13 +615,21 @@ public class LearningCenterLevelExamService {
...
@@ -615,13 +615,21 @@ public class LearningCenterLevelExamService {
ArrayList
<
LevelExamDataOverviewDTO
.
TopPersonDTO
>
topPersons
=
new
ArrayList
<>();
ArrayList
<
LevelExamDataOverviewDTO
.
TopPersonDTO
>
topPersons
=
new
ArrayList
<>();
List
<
LearningCenterLevelExamPerson
>
top10
=
persons
.
subList
(
0
,
Math
.
min
(
10
,
persons
.
size
()));
List
<
LearningCenterLevelExamPerson
>
top10
=
persons
.
subList
(
0
,
Math
.
min
(
10
,
persons
.
size
()));
BigDecimal
scoreTemp
=
BigDecimal
.
ZERO
;
int
numTemp
=
1
;
//初始排名第一
for
(
int
i
=
0
;
i
<
top10
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
top10
.
size
();
i
++)
{
LearningCenterLevelExamPerson
examPerson
=
top10
.
get
(
i
);
LearningCenterLevelExamPerson
examPerson
=
top10
.
get
(
i
);
LevelExamDataOverviewDTO
.
TopPersonDTO
topPerson
=
new
LevelExamDataOverviewDTO
.
TopPersonDTO
();
LevelExamDataOverviewDTO
.
TopPersonDTO
topPerson
=
new
LevelExamDataOverviewDTO
.
TopPersonDTO
();
topPerson
.
setNum
(
i
+
1
);
if
(
examPerson
.
getScore
()
!=
null
&&
examPerson
.
getScore
().
compareTo
(
scoreTemp
)
<
0
)
{
topPerson
.
setNum
(
i
+
1
);
numTemp
=
topPerson
.
getNum
();
}
else
{
topPerson
.
setNum
(
numTemp
);
}
topPerson
.
setName
(
examPerson
.
getPersonName
());
topPerson
.
setName
(
examPerson
.
getPersonName
());
topPerson
.
setScore
(
examPerson
.
getScore
());
topPerson
.
setScore
(
examPerson
.
getScore
());
topPersons
.
add
(
topPerson
);
topPersons
.
add
(
topPerson
);
scoreTemp
=
examPerson
.
getScore
();
}
}
dto
.
setTopPersons
(
topPersons
);
dto
.
setTopPersons
(
topPersons
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment