| | |
| | | import com.moral.common.util.*; |
| | | import com.moral.common.webAnno.UserLoginToken; |
| | | import com.moral.entity.AreaNames; |
| | | import com.moral.entity.Device; |
| | | import com.moral.entity.MonitorPoint; |
| | | import com.moral.entity.Organization; |
| | | import com.moral.service.*; |
| | |
| | | HistoryMinutelyService historyMinutelyService; |
| | | @Resource |
| | | MonitorPointService monitorPointService; |
| | | @Resource |
| | | DeviceService deviceService; |
| | | |
| | | @UserLoginToken |
| | | @GetMapping("test") |
| | |
| | | List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsAndDevicesByRegion(parameters); |
| | | return new ResultBean<List<MonitorPoint>>(monitorPoints); |
| | | } |
| | | |
| | | @UserLoginToken |
| | | @GetMapping("coordinates") |
| | | public ResultBean<List<Device>> getDeviceCoordinatesAndState(HttpServletRequest request){ |
| | | Map<String, Object> parameters = WebUtils.getParametersStartingWith(request, null); |
| | | ParameterUtils.getRegionType4RegionCode(parameters); |
| | | return new ResultBean<List<Device>>(deviceService.queryDevice(parameters)); |
| | | } |
| | | } |