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 {
// 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,
......
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