From 7b1d9b664256caeb7c4d8aef47f64b720ba68e3f Mon Sep 17 00:00:00 2001 From: Dizho A Date: Tue, 21 Jul 2026 15:41:14 +0530 Subject: [PATCH] update mobile service code for rag picker Survey --- .../Service/RagPickerSurveyService.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/in/gov/chennaicorporation/mobileservice/gccRagPickerSurvey/Service/RagPickerSurveyService.java b/src/main/java/in/gov/chennaicorporation/mobileservice/gccRagPickerSurvey/Service/RagPickerSurveyService.java index 05871a5d..9473c5e6 100644 --- a/src/main/java/in/gov/chennaicorporation/mobileservice/gccRagPickerSurvey/Service/RagPickerSurveyService.java +++ b/src/main/java/in/gov/chennaicorporation/mobileservice/gccRagPickerSurvey/Service/RagPickerSurveyService.java @@ -1124,8 +1124,13 @@ public class RagPickerSurveyService { qid = 15; } else if ("age".equals(cleanKey)) { qid = 6; - } + } + else if ("shift_week".equals(cleanKey)) { + qid = 101; + } } + + // Fallback: If still null, try resolving by field_name or matching q_english // (case-insensitive) from DB without active/delete constraint @@ -1169,7 +1174,12 @@ public class RagPickerSurveyService { } else if (qid == 6) { parentAnswerId = 3; } + else if (qid == 101) { + parentAnswerId = 3; + } } + + // Fallback: If still null, try resolving from mapping table (without // active/delete constraint)