3 changed files with 2175 additions and 2 deletions
-
26src/main/java/com/gcc/commissionerreview/configuration/DataSourceConfig.java
-
114src/main/java/com/gcc/commissionerreview/controller/VolunteerController.java
-
2037src/main/java/com/gcc/commissionerreview/service/VolunteerService.java
@ -0,0 +1,114 @@ |
|||
package com.gcc.commissionerreview.controller; |
|||
|
|||
import com.gcc.commissionerreview.service.VolunteerService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.http.ResponseEntity; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.Map; |
|||
|
|||
@RestController |
|||
@RequestMapping("/commissionerreview/api/volunteer") |
|||
public class VolunteerController { |
|||
|
|||
@Autowired |
|||
private VolunteerService volunteerService; |
|||
|
|||
@GetMapping("/overall-details") |
|||
public ResponseEntity<Map<String, Object>> getOverallDetails() { |
|||
return volunteerService.getOverallDetails(); |
|||
} |
|||
|
|||
@GetMapping("/overall-totalvolunteers") |
|||
public ResponseEntity<Map<String, Object>> getOverallTotalVolunteers() { |
|||
return volunteerService.getOverallTotalVolunteers(); |
|||
} |
|||
|
|||
@GetMapping("/overall-inactivevolunteers") |
|||
public ResponseEntity<Map<String, Object>> getOverallInactiveVolunteers() { |
|||
return volunteerService.getOverallInactiveVolunteers(); |
|||
} |
|||
|
|||
@GetMapping("/overall-activevolunteers") |
|||
public ResponseEntity<Map<String, Object>> getOverallActiveVolunteers() { |
|||
return volunteerService.getOverallActiveVolunteers(); |
|||
} |
|||
|
|||
@GetMapping("/overall-readytoworkvolunteers") |
|||
public ResponseEntity<Map<String, Object>> getOverallReadyToWorkVolunteers() { |
|||
return volunteerService.getOverallReadyToWorkVolunteers(); |
|||
} |
|||
|
|||
@GetMapping("/overall-totalrequest") |
|||
public ResponseEntity<Map<String, Object>> getOverallTotalRequest() { |
|||
return volunteerService.getOverallTotalRequest(); |
|||
} |
|||
|
|||
@GetMapping("/overall-completedrequest") |
|||
public ResponseEntity<Map<String, Object>> getOverallCompletedRequest() { |
|||
return volunteerService.getOverallCompletedRequest(); |
|||
} |
|||
|
|||
@GetMapping("/overall-pendingrequest") |
|||
public ResponseEntity<Map<String, Object>> getOverallPendingRequest() { |
|||
return volunteerService.getOverallPendingRequest(); |
|||
} |
|||
/// ////////////////////////////////////// |
|||
@GetMapping("/zonewise-details") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseDetails() { |
|||
return volunteerService.getZonewiseDetails(); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-totalvolunteers") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseTotalVolunteers(@RequestParam String zone) { |
|||
return volunteerService.getZonewiseTotalVolunteers(zone); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-distincttotalvolunteers") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseDistinctTotalVolunteers(@RequestParam String zone) { |
|||
return volunteerService.getZonewiseDistinctTotalVolunteers(zone); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-activevolunteers") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseActiveVolunteers(@RequestParam String zone) { |
|||
return volunteerService.getZonewiseActiveVolunteers(zone); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-inactivevolunteers") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseInActiveVolunteers(@RequestParam String zone) { |
|||
return volunteerService.getZonewiseInActiveVolunteers(zone); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-readytoworkvolunteers") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseReadyToWorkVolunteers(@RequestParam String zone) { |
|||
return volunteerService.getZonewiseReadyToWorkVolunteers(zone); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-totalrequest") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseTotalRequest(@RequestParam String zone) { |
|||
return volunteerService.getZonewiseTotalRequest(zone); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-completedrequest") |
|||
public ResponseEntity<Map<String, Object>> getZonewiseCompletedRequest(@RequestParam String zone) { |
|||
return volunteerService.getZonewiseCompletedRequest(zone); |
|||
} |
|||
|
|||
@GetMapping("/zonewise-pendingrequest") |
|||
public ResponseEntity<Map<String, Object>> getZonewisePendingRequest(@RequestParam String zone) { |
|||
return volunteerService.getZonewisePendingRequest(zone); |
|||
} |
|||
/// //////////////////////////////////// |
|||
@GetMapping("/wardwise-details") |
|||
public ResponseEntity<Map<String, Object>> getWardwiseDetails(@RequestParam String zone) { |
|||
return volunteerService.getWardwiseDetails(zone); |
|||
} |
|||
/// ///////////////////////////////////// |
|||
@GetMapping("/volunteer-details") |
|||
public ResponseEntity<Map<String, Object>> getVolunteerDetails(@RequestParam String zone) { |
|||
return volunteerService.getVolunteerDetails(zone); |
|||
} |
|||
} |
|||
2037
src/main/java/com/gcc/commissionerreview/service/VolunteerService.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue