| | |
| | | * 获取智控设备详细信息 |
| | | */ |
| | | @ApiOperation("获取智控设备详细信息") |
| | | @PreAuthorize("@ss.hasPermi('oa:equipment:query')") |
| | | @PreAuthorize("@ss.hasPermi('oa:equipment:info')") |
| | | @GetMapping("/{id}") |
| | | public AjaxResult<DevEquipmentVo> getInfo(@ApiParam("主键") |
| | | @NotNull(message = "主键不能为空") |
| | |
| | | return AjaxResult.success(iDevEquipmentService.queryById(id)); |
| | | } |
| | | |
| | | // /** |
| | | // * 新增智控设备 |
| | | // */ |
| | | // @ApiOperation("新增智控设备") |
| | | // @PreAuthorize("@ss.hasPermi('oa:equipment:add')") |
| | | // @Log(title = "智控设备", businessType = BusinessType.INSERT) |
| | | // @RepeatSubmit() |
| | | // @PostMapping() |
| | | // public AjaxResult<Void> add(@Validated(AddGroup.class) @RequestBody DevEquipmentBo bo) { |
| | | // return toAjax(iDevEquipmentService.insertByBo(bo) ? 1 : 0); |
| | | // } |
| | | /** |
| | | * 新增智控设备 |
| | | */ |
| | | @ApiOperation("新增智控设备") |
| | | @PreAuthorize("@ss.hasPermi('oa:equipment:add')") |
| | | @Log(title = "智控设备", businessType = BusinessType.INSERT) |
| | | @RepeatSubmit() |
| | | @PostMapping() |
| | | public AjaxResult<Void> add(@Validated(AddGroup.class) @RequestBody DevEquipmentBo bo) { |
| | | return toAjax(iDevEquipmentService.insertByBo(bo) ? 1 : 0); |
| | | } |
| | | |
| | | |
| | | /** |