Commit b73c86d5 authored by Pratik Shrivastava's avatar Pratik Shrivastava

feat: add filledByAdmin and existing field in form data save query

parent 67de0399
...@@ -54,6 +54,8 @@ public class AdmissionFormDataRepository { ...@@ -54,6 +54,8 @@ public class AdmissionFormDataRepository {
// end newly added fields // end newly added fields
"candidate_image_name, " + "candidate_image_name, " +
"father_image_name, " + "father_image_name, " +
"filled_by_admin, " +
"existing, " +
"mother_image_name) " + "mother_image_name) " +
"VALUES (:school, :category, :fullName, :admissionClass, " + "VALUES (:school, :category, :fullName, :admissionClass, " +
":dateOfBirth, :nationality, :religion, :motherTongue, :community, " + ":dateOfBirth, :nationality, :religion, :motherTongue, :community, " +
...@@ -81,11 +83,13 @@ public class AdmissionFormDataRepository { ...@@ -81,11 +83,13 @@ public class AdmissionFormDataRepository {
// end newly added fields // end newly added fields
":candidateImageName, " + ":candidateImageName, " +
":fatherImageName, " + ":fatherImageName, " +
":filledByAdmin, " +
":existing, " +
":motherImageName)"; ":motherImageName)";
try { try {
MapSqlParameterSource params = new MapSqlParameterSource(); MapSqlParameterSource params = new MapSqlParameterSource();
params.addValue("school", formData.getSchool()); params.addValue("school", formData.getSchool());
params.addValue("category", formData.getCategory()); params.addValue("category", formData.getCategory());
params.addValue("fullName", formData.getFullName()); params.addValue("fullName", formData.getFullName());
...@@ -141,7 +145,9 @@ public class AdmissionFormDataRepository { ...@@ -141,7 +145,9 @@ public class AdmissionFormDataRepository {
params.addValue("candidateImageName", formData.getCandidateImageName()); params.addValue("candidateImageName", formData.getCandidateImageName());
params.addValue("fatherImageName", formData.getFatherImageName()); params.addValue("fatherImageName", formData.getFatherImageName());
params.addValue("motherImageName", formData.getMotherImageName()); params.addValue("motherImageName", formData.getMotherImageName());
params.addValue("filledByAdmin", formData.isFilledByAdmin());
params.addValue("existing", formData.isExisting());
KeyHolder keyHolder = new GeneratedKeyHolder(); KeyHolder keyHolder = new GeneratedKeyHolder();
int cnt = namedParameterJdbcTemplate.update(sql, params, keyHolder); int cnt = namedParameterJdbcTemplate.update(sql, params, keyHolder);
Long id = null; Long id = null;
...@@ -157,7 +163,7 @@ public class AdmissionFormDataRepository { ...@@ -157,7 +163,7 @@ public class AdmissionFormDataRepository {
return null; return null;
} }
} }
public List<AdmissionFormDataPreview> getAdmissionFormDataListPreview( public List<AdmissionFormDataPreview> getAdmissionFormDataListPreview(
String schoolName, String schoolName,
String className, String className,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment