|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package in.gov.chennaicorporation.gccoffice.pgr.contoller; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -117,6 +118,8 @@ public class Maincontroller { |
|
|
|
|
|
|
|
@GetMapping("/dashboard") |
|
|
|
public String home(Model model, |
|
|
|
@RequestParam(required = false) String sFrDate, |
|
|
|
@RequestParam(required = false) String sToDate, |
|
|
|
@RequestParam(required = false) String DEPT_NAME, |
|
|
|
@RequestParam(required = false) String DEPTID) { |
|
|
|
System.out.println("ageanalysislist"); |
|
|
|
@ -127,13 +130,13 @@ public class Maincontroller { |
|
|
|
|
|
|
|
// DEPTID is provided, call the query method |
|
|
|
if( DEPT_NAME!=null && !DEPT_NAME.isEmpty() && DEPTID!=null && !DEPTID.isEmpty() ) { |
|
|
|
List<Map<String, Object>> reopenzonewisedashboardList = reopenzonewiseDaskboards.getReopenZonewisedashboardquery(DEPTID); |
|
|
|
List<Map<String, Object>> zonewisedashboardList = zonewiseDaskboards.getzonewisedaskboardQuery(DEPTID); |
|
|
|
List<Map<String, Object>> reopenzonewisedashboardList = reopenzonewiseDaskboards.getReopenZonewisedashboardquery(sFrDate,sToDate,DEPTID); |
|
|
|
List<Map<String, Object>> zonewisedashboardList = zonewiseDaskboards.getzonewisedaskboardQuery(sFrDate,sToDate,DEPTID); |
|
|
|
|
|
|
|
model.addAttribute("reopenzonewisedashboardList", reopenzonewisedashboardList); |
|
|
|
model.addAttribute("zonewisedashboardList", zonewisedashboardList); |
|
|
|
|
|
|
|
List<Map<String, Object>> ageanalysisdashboardList = ageanalysisDaskboards.getdashboardquery(DEPT_NAME); |
|
|
|
List<Map<String, Object>> ageanalysisdashboardList = ageanalysisDaskboards.getdashboardquery(sFrDate,sToDate,DEPT_NAME); |
|
|
|
|
|
|
|
model.addAttribute("ageanalysisdashboardList", ageanalysisdashboardList); |
|
|
|
|
|
|
|
@ -143,6 +146,8 @@ public class Maincontroller { |
|
|
|
model.addAttribute("complaintdept1",complaintdept1); |
|
|
|
model.addAttribute("DEPT_NAME", DEPT_NAME); |
|
|
|
model.addAttribute("DEPTID", DEPTID); |
|
|
|
model.addAttribute("sFrDate", sFrDate); |
|
|
|
model.addAttribute("sToDate", sToDate); |
|
|
|
return "modules/pgr/index"; |
|
|
|
} |
|
|
|
|
|
|
|
|