Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LaMartin-Webomagic
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Pratik Shrivastava
LaMartin-Webomagic
Commits
b73c86d5
Commit
b73c86d5
authored
Jan 28, 2025
by
Pratik Shrivastava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add filledByAdmin and existing field in form data save query
parent
67de0399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
lamartinBackend/src/main/java/com/example/LaMartin/admission/dao/repository/AdmissionFormDataRepository.java
...admission/dao/repository/AdmissionFormDataRepository.java
+10
-4
No files found.
lamartinBackend/src/main/java/com/example/LaMartin/admission/dao/repository/AdmissionFormDataRepository.java
View file @
b73c86d5
...
...
@@ -54,6 +54,8 @@ public class AdmissionFormDataRepository {
// end newly added fields
"candidate_image_name, "
+
"father_image_name, "
+
"filled_by_admin, "
+
"existing, "
+
"mother_image_name) "
+
"VALUES (:school, :category, :fullName, :admissionClass, "
+
":dateOfBirth, :nationality, :religion, :motherTongue, :community, "
+
...
...
@@ -81,11 +83,13 @@ public class AdmissionFormDataRepository {
// end newly added fields
":candidateImageName, "
+
":fatherImageName, "
+
":filledByAdmin, "
+
":existing, "
+
":motherImageName)"
;
try
{
MapSqlParameterSource
params
=
new
MapSqlParameterSource
();
params
.
addValue
(
"school"
,
formData
.
getSchool
());
params
.
addValue
(
"category"
,
formData
.
getCategory
());
params
.
addValue
(
"fullName"
,
formData
.
getFullName
());
...
...
@@ -141,7 +145,9 @@ public class AdmissionFormDataRepository {
params
.
addValue
(
"candidateImageName"
,
formData
.
getCandidateImageName
());
params
.
addValue
(
"fatherImageName"
,
formData
.
getFatherImageName
());
params
.
addValue
(
"motherImageName"
,
formData
.
getMotherImageName
());
params
.
addValue
(
"filledByAdmin"
,
formData
.
isFilledByAdmin
());
params
.
addValue
(
"existing"
,
formData
.
isExisting
());
KeyHolder
keyHolder
=
new
GeneratedKeyHolder
();
int
cnt
=
namedParameterJdbcTemplate
.
update
(
sql
,
params
,
keyHolder
);
Long
id
=
null
;
...
...
@@ -157,7 +163,7 @@ public class AdmissionFormDataRepository {
return
null
;
}
}
public
List
<
AdmissionFormDataPreview
>
getAdmissionFormDataListPreview
(
String
schoolName
,
String
className
,
...
...
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