Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Open sidebar
Kamal Agrawal
StateStreetProject-dev
Commits
31776d07
Commit
31776d07
authored
Jun 10, 2021
by
manishatyagi
Browse files
change percentage range in percentage assessment report
parent
8797c4c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
src/main/java/com/statestreet/service/ReportServiceImpl.java
src/main/java/com/statestreet/service/ReportServiceImpl.java
+21
-21
No files found.
src/main/java/com/statestreet/service/ReportServiceImpl.java
View file @
31776d07
...
...
@@ -706,7 +706,7 @@ public class ReportServiceImpl implements ReportService{
private
String
getTenureRange
(
double
duration
)
{
String
tenure
=
""
;
if
(
duration
>
0
&&
duration
<=
6
)
if
(
duration
>
=
0
&&
duration
<=
6
)
{
tenure
=
CommonUtils
.
Tenure
[
0
];
}
...
...
@@ -811,40 +811,40 @@ public class ReportServiceImpl implements ReportService{
List
<
DBObject
>
percentageWiseAssessmentReport
=
quizResultRepo
.
getPercentageWiseAssessmentReport
(
stDate
,
enDate
,
assessmentId
,
subLobId
);
Integer
grandTotal
=
0
;
Map
<
String
,
Integer
>
hashMap
=
new
HashMap
<
String
,
Integer
>();
hashMap
.
put
(
"0-
35
"
,
0
);
hashMap
.
put
(
"
36-5
0"
,
0
)
;
hashMap
.
put
(
"
51-7
0"
,
0
)
;
hashMap
.
put
(
"
71
-80"
,
0
)
;
hashMap
.
put
(
"8
1
-100"
,
0
)
;
hashMap
.
put
(
"0-
20
"
,
0
);
hashMap
.
put
(
"
20-4
0"
,
0
)
;
hashMap
.
put
(
"
40-6
0"
,
0
)
;
hashMap
.
put
(
"
60
-80"
,
0
)
;
hashMap
.
put
(
"8
0
-100"
,
0
)
;
hashMap
.
put
(
"Grand Total"
,
grandTotal
);
for
(
DBObject
result:
percentageWiseAssessmentReport
)
{
int
score
=(
Integer
)
result
.
get
(
"quizScore"
);
if
(
score
>
0
&
score
<
35
)
{
if
(
score
>
=
0
&
score
<
=
20
)
{
grandTotal
++;
if
(
hashMap
.
containsKey
(
"0-
35
"
))
{
hashMap
.
put
(
"0-
35
"
,
hashMap
.
get
(
"0-
35
"
)+
1
)
;
if
(
hashMap
.
containsKey
(
"0-
20
"
))
{
hashMap
.
put
(
"0-
20
"
,
hashMap
.
get
(
"0-
20
"
)+
1
)
;
}
}
else
if
(
score
>
=
36
&
score
<=
5
0
){
}
else
if
(
score
>
20
&
score
<=
4
0
){
grandTotal
++;
if
(
hashMap
.
containsKey
(
"
36-5
0"
))
{
hashMap
.
put
(
"
36-5
0"
,
hashMap
.
get
(
"
36-5
0"
)+
1
)
;
if
(
hashMap
.
containsKey
(
"
20-4
0"
))
{
hashMap
.
put
(
"
20-4
0"
,
hashMap
.
get
(
"
20-4
0"
)+
1
)
;
}
}
else
if
(
score
>
=
51
&
score
<=
7
0
){
}
else
if
(
score
>
40
&
score
<=
6
0
){
grandTotal
++;
if
(
hashMap
.
containsKey
(
"
51-7
0"
))
{
hashMap
.
put
(
"
51-7
0"
,
hashMap
.
get
(
"
51-7
0"
)+
1
)
;
if
(
hashMap
.
containsKey
(
"
40-6
0"
))
{
hashMap
.
put
(
"
40-6
0"
,
hashMap
.
get
(
"
40-6
0"
)+
1
)
;
}
}
else
if
(
score
>
=
71
&
score
<=
80
){
}
else
if
(
score
>
60
&
score
<=
80
){
grandTotal
++;
if
(
hashMap
.
containsKey
(
"
71
-80"
))
{
hashMap
.
put
(
"
71
-80"
,
hashMap
.
get
(
"
71
-80"
)+
1
)
;
if
(
hashMap
.
containsKey
(
"
60
-80"
))
{
hashMap
.
put
(
"
60
-80"
,
hashMap
.
get
(
"
60
-80"
)+
1
)
;
}
}
else
if
(
score
>
=
81
&
score
<=
100
){
}
else
if
(
score
>
80
&
score
<=
100
){
grandTotal
++;
if
(
hashMap
.
containsKey
(
"8
1
-100"
))
{
hashMap
.
put
(
"8
1
-100"
,
hashMap
.
get
(
"8
1
-100"
)+
1
)
;
if
(
hashMap
.
containsKey
(
"8
0
-100"
))
{
hashMap
.
put
(
"8
0
-100"
,
hashMap
.
get
(
"8
0
-100"
)+
1
)
;
}
}
hashMap
.
put
(
"Grand Total"
,
grandTotal
);
...
...
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