| | |
| | | * @param mac the mac
|
| | | * @return the device by mac
|
| | | */
|
| | | @PostMapping("getEquInfoByMac")
|
| | | @GetMapping("getEquInfoByMac")
|
| | | public AppData<Device> getDeviceByMac(@RequestParam(value="mac", required=true)String mac) {
|
| | | Device device = deviceService.getDeviceByMac(mac);
|
| | | return new AppData<Device>(device);
|
| | |
| | | * @param request the area name
|
| | | * @return the monitor points by area name
|
| | | */
|
| | | @PostMapping("getMpointsByAreaName")
|
| | | @GetMapping("getMpointsByAreaName")
|
| | | public AppData<List<MonitorPoint>> getMonitorPointsByAreaName(HttpServletRequest request) {
|
| | | Map<String, Object> parameters = getParametersStartingWith(request, null);
|
| | | List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByAreaName(parameters);
|
| | |
| | | * @param request the area name
|
| | | * @return the organizations by area name
|
| | | */
|
| | | @PostMapping("getOrgsByAreaName")
|
| | | @GetMapping("getOrgsByAreaName")
|
| | | public AppData<List<Organization>> getOrganizationsByAreaName(HttpServletRequest request) {
|
| | | Map<String, Object> parameters = getParametersStartingWith(request, null);
|
| | | List<Organization> organizations = organizationService.getOrganizationsByAreaName(parameters);
|