fengxiang
2018-01-25 56e81073389ebb511562ddf85e1b22a8db0585a9
src/main/java/com/moral/controller/MonitorPointController.java
@@ -25,6 +25,19 @@
        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);