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
uphrh-casa-user-data-service
Commits
aa6d2bf1
Commit
aa6d2bf1
authored
1 year ago
by
Pawan Kumar
Browse files
Options
Download
Patches
Plain Diff
get candidate by roll number
parent
0e4b67e9
getStudentByRollnumber
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app.controller.ts
+5
-0
src/app.controller.ts
src/app.service.ts
+8
-0
src/app.service.ts
with
13 additions
and
0 deletions
+13
-0
src/app.controller.ts
+
5
−
0
View file @
aa6d2bf1
...
...
@@ -34,6 +34,11 @@ export class AppController {
return
this
.
appService
.
getStudentById
(
params
.
id
);
}
@
Get
(
'
student/:rollnumber
'
)
getStudentByRollnumber
(@
Param
()
params
)
{
return
this
.
appService
.
getStudentByRollnumber
(
params
.
rollnumber
);
}
@
Get
(
'
tutor/:id
'
)
getTutor
(@
Param
()
params
)
{
return
this
.
appService
.
getTutorById
(
params
.
id
);
...
...
This diff is collapsed.
Click to expand it.
src/app.service.ts
+
8
−
0
View file @
aa6d2bf1
...
...
@@ -143,4 +143,12 @@ export class AppService {
);
return
res
.
recordset
[
0
];
}
async
getStudentByRollnumber
(
id
:
string
)
{
const
db
=
await
this
.
dbConnection
.
connect
();
const
res
=
await
db
.
query
(
`Select * from upsmfac_casa.dbo.Master_StudentProfile where RollNo='
${
id
}
'`
,
);
return
res
.
recordset
[
0
];
}
}
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