Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
examsAndAdmissions
Commits
df45990c
Commit
df45990c
authored
1 year ago
by
Radheshhathwar
Browse files
Options
Download
Patches
Plain Diff
Hall ticket changes
parent
fb90d26d
github/fork/ruksana2808/filter_bug_examCycle
development
1 merge request
!184
Hall ticket changes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/tarento/upsmf/examsAndAdmissions/repository/StudentExamRegistrationRepository.java
+2
-0
...issions/repository/StudentExamRegistrationRepository.java
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/HallTicketService.java
+3
-5
...o/upsmf/examsAndAdmissions/service/HallTicketService.java
with
5 additions
and
5 deletions
+5
-5
src/main/java/com/tarento/upsmf/examsAndAdmissions/repository/StudentExamRegistrationRepository.java
+
2
−
0
View file @
df45990c
...
...
@@ -61,4 +61,6 @@ public interface StudentExamRegistrationRepository extends JpaRepository<Student
StudentExamRegistration
getByStudentId
(
Long
id
);
StudentExamRegistration
getByStudentIdAndExamCycleId
(
Long
studentId
,
Long
examCycleId
);
List
<
StudentExamRegistration
>
getByExamCycleIdAndStudentId
(
Long
examCycleId
,
Long
studentId
);
}
This diff is collapsed.
Click to expand it.
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/HallTicketService.java
+
3
−
5
View file @
df45990c
...
...
@@ -700,15 +700,13 @@ public class HallTicketService {
public
ResponseDto
getDetailsByStudentIdAndExamCycleId
(
Long
studentId
,
Long
examCycleId
)
{
ResponseDto
response
=
new
ResponseDto
(
Constants
.
API_HALLTICKET_GET_DETAILS_BY_STUDENT_AND_EXAM_CYCLE
);
Optional
<
StudentExamRegistration
>
optionalRegistration
=
studentExamRegistrationRepository
.
findByStudentIdAndExamCycleId
(
studentId
,
examCycleId
);
List
<
StudentExamRegistration
>
registrationList
=
studentExamRegistrationRepository
.
getByExamCycleIdAndStudentId
(
examCycleId
,
studentId
);
if
(
!
optionalR
egistration
.
is
Present
()
)
{
if
(
r
egistration
L
is
t
==
null
)
{
ResponseDto
.
setErrorResponse
(
response
,
"NOT_FOUND"
,
"No data found for given student ID and exam cycle ID."
,
HttpStatus
.
NOT_FOUND
);
return
response
;
}
StudentExamRegistration
registration
=
optionalRegistration
.
get
();
StudentExamRegistration
registration
=
registrationList
.
get
(
0
);
Map
<
String
,
Object
>
formattedData
=
new
HashMap
<>();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets