You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.6 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package in.gov.chennaicorporation.gccoffice.school.Controller;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.http.ResponseEntity;
  5. import org.springframework.web.bind.annotation.GetMapping;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. import org.springframework.web.bind.annotation.RestController;
  9. import in.gov.chennaicorporation.gccoffice.school.Service.SchoolReportService;
  10. @RestController
  11. @RequestMapping("/gcc/api/gccschool/report")
  12. public class SchoolReportController {
  13. @Autowired
  14. private SchoolReportService schoolReportService;
  15. @Autowired
  16. public SchoolReportController(SchoolReportService schoolReportService) {
  17. this.schoolReportService = schoolReportService;
  18. }
  19. @GetMapping("/getAEOList")
  20. public ResponseEntity<?> getAEOList(){
  21. return schoolReportService.getAEOList();
  22. }
  23. @GetMapping("/getAEOZone")
  24. public ResponseEntity<?> getAEOZone(@RequestParam String udise){
  25. return schoolReportService.getAEOZone(udise);
  26. }
  27. @GetMapping("/getAEOWard")
  28. public ResponseEntity<?> getAEOWard(@RequestParam String udise, @RequestParam String zone){
  29. return schoolReportService.getAEOWard(udise, zone);
  30. }
  31. @GetMapping("/getAEOSchoolData")
  32. public ResponseEntity<?> getAEOSchoolData(@RequestParam (required = false) List<String> udise,
  33. @RequestParam (required = false) String zone,
  34. @RequestParam (required = false) String ward){
  35. return schoolReportService.getAEOSchoolData(udise, zone, ward);
  36. }
  37. }