|  |  |  | 
|---|
|  |  |  | * @param request the area name | 
|---|
|  |  |  | * @return the monitor points by area name | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("getMpointsByAreaName") | 
|---|
|  |  |  | @GetMapping("getMpointsByAreaName") | 
|---|
|  |  |  | public AppData<List<MonitorPoint>> getMonitorPointsByAreaName(HttpServletRequest request) { | 
|---|
|  |  |  | System.out.println("++++++++++++++++++++++++++++++++11111"); | 
|---|
|  |  |  | System.out.println(request.getParameter("areaName")); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Map<String, Object> parameters = getParametersStartingWith(request, null); | 
|---|
|  |  |  | List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByAreaName(parameters); | 
|---|
|  |  |  | return new AppData<List<MonitorPoint>>(monitorPoints); | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param request the area name | 
|---|
|  |  |  | * @return the organizations by area name | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("getOrgsByAreaName") | 
|---|
|  |  |  | @GetMapping("getOrgsByAreaName") | 
|---|
|  |  |  | public AppData<List<Organization>> getOrganizationsByAreaName(HttpServletRequest request) { | 
|---|
|  |  |  | System.out.println("++++++++++++++++++++++++++++++++22222"); | 
|---|
|  |  |  | System.out.println(request.getParameter("areaName")); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Map<String, Object> parameters = getParametersStartingWith(request, null); | 
|---|
|  |  |  | List<Organization> organizations = organizationService.getOrganizationsByAreaName(parameters); | 
|---|
|  |  |  | return new AppData<List<Organization>>(organizations); | 
|---|