| | |
| | | ResultBean resultBean = new ResultBean(ResultBean.SUCCESS); |
| | | return resultBean; |
| | | } |
| | | |
| | | /** |
| | | * 根据 监控点id 获取 监控点 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("get-by-id") |
| | | public ResultBean getById(Integer id){ |
| | | MonitorPoint monitorPoint = monitorPointService.selectWithRelationById(id); |
| | | ResultBean resultBean = new ResultBean(ResultBean.SUCCESS); |
| | | resultBean.setData(monitorPoint); |
| | | return resultBean; |
| | | } |
| | | @PostMapping("add-or-modify") |
| | | public ResultBean addOrModify(@RequestBody MonitorPoint monitorPoint){ |
| | | monitorPointService.addOrModify(monitorPoint); |