Browse Source

update mobile service code for rag picker Survey

master
Dizho A 3 months ago
parent
commit
7b1d9b6642
  1. 10
      src/main/java/in/gov/chennaicorporation/mobileservice/gccRagPickerSurvey/Service/RagPickerSurveyService.java

10
src/main/java/in/gov/chennaicorporation/mobileservice/gccRagPickerSurvey/Service/RagPickerSurveyService.java

@ -1125,8 +1125,13 @@ public class RagPickerSurveyService {
} else if ("age".equals(cleanKey)) { } else if ("age".equals(cleanKey)) {
qid = 6; qid = 6;
} }
else if ("shift_week".equals(cleanKey)) {
qid = 101;
}
} }
// Fallback: If still null, try resolving by field_name or matching q_english // Fallback: If still null, try resolving by field_name or matching q_english
// (case-insensitive) from DB without active/delete constraint // (case-insensitive) from DB without active/delete constraint
if (qid == null) { if (qid == null) {
@ -1169,8 +1174,13 @@ public class RagPickerSurveyService {
} else if (qid == 6) { } else if (qid == 6) {
parentAnswerId = 3; parentAnswerId = 3;
} }
else if (qid == 101) {
parentAnswerId = 3;
}
} }
// Fallback: If still null, try resolving from mapping table (without // Fallback: If still null, try resolving from mapping table (without
// active/delete constraint) // active/delete constraint)
if (parentAnswerId == null) { if (parentAnswerId == null) {

Loading…
Cancel
Save