From 0085d7de3569408c604d0581eded9eb3ba73a857 Mon Sep 17 00:00:00 2001 From: yoganandhank Date: Wed, 9 Sep 2026 10:43:38 +0530 Subject: [PATCH] changes in the survey app login api --- .../service/ChildSurveyService.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/in/gov/chennaicorporation/mobileservice/gccChildrenSurvey/service/ChildSurveyService.java b/src/main/java/in/gov/chennaicorporation/mobileservice/gccChildrenSurvey/service/ChildSurveyService.java index f6289dc1..56c82f5d 100644 --- a/src/main/java/in/gov/chennaicorporation/mobileservice/gccChildrenSurvey/service/ChildSurveyService.java +++ b/src/main/java/in/gov/chennaicorporation/mobileservice/gccChildrenSurvey/service/ChildSurveyService.java @@ -22,11 +22,19 @@ public class ChildSurveyService { @Autowired JdbcTemplate jdbcChildSurveyTemplate; + @Autowired + JdbcTemplate jdbcMobileMenuTemplate; + @Autowired public void setDataSource(@Qualifier("mysqlChildSurveyDataSource") DataSource childSurveyDataSource) { this.jdbcChildSurveyTemplate = new JdbcTemplate(childSurveyDataSource); } + @Autowired + public void setMobileMenuDataSource(@Qualifier("mysqlGccMobileMenuDataSource") DataSource mobileMenuDataSource) { + this.jdbcMobileMenuTemplate = new JdbcTemplate(mobileMenuDataSource); + } + public List> getSurveyQuestions() { // Step 1: Get all child_qids @@ -631,7 +639,10 @@ public class ChildSurveyService { "FROM login_details " + "WHERE mobile_no = ? AND password = ? AND is_active = 1 AND is_delete = 0 Limit 1"; - List> data = jdbcChildSurveyTemplate.queryForList(sql, mobileNo, password); + // List> data = jdbcChildSurveyTemplate.queryForList(sql, + // mobileNo, password); + + List> data = jdbcMobileMenuTemplate.queryForList(sql, mobileNo, password); Map response = new HashMap<>();