| | |
| | | import com.moral.service.DeviceService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RestController |
| | |
| | | ResultBean resultBean = new ResultBean(ResultBean.SUCCESS); |
| | | return resultBean; |
| | | } |
| | | |
| | | @GetMapping("monitorPointId") |
| | | public ResultBean<List<Device>> getDevicesByMonitorPointId(@RequestParam(name="monitorPointId")Integer monitorPointId) { |
| | | |
| | | List<Device> devices = deviceService.getDevicesByMonitorPointId(monitorPointId); |
| | | return new ResultBean<List<Device>>(devices); |
| | | } |
| | | } |