唐耀东
2022-05-18 163f15f11565405041d58e0db3a17dcaa08f1988
ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/SgIotController.java
@@ -49,7 +49,7 @@
     */
    @DataDictClass
    @ApiOperation("查询IoT设备列表")
    @PreAuthorize("@ss.hasPermi('oa:iot:list')")
//    @PreAuthorize("@ss.hasPermi('oa:iot:list')")
    @GetMapping("/list")
    public TableDataInfo<SgIotVo> list(@Validated(QueryGroup.class) SgIotBo bo) {
        return iSgIotService.queryPageList(bo);
@@ -80,7 +80,7 @@
     * 获取IoT设备详细信息
     */
    @ApiOperation("获取IoT设备详细信息")
    @PreAuthorize("@ss.hasPermi('oa:iot:query')")
//    @PreAuthorize("@ss.hasPermi('oa:iot:query')")
    @GetMapping("/{id}")
    public AjaxResult<SgIotVo> getInfo(@ApiParam("主键")
                                                  @NotNull(message = "主键不能为空")
@@ -92,7 +92,7 @@
     * 新增IoT设备
     */
    @ApiOperation("新增IoT设备")
    @PreAuthorize("@ss.hasPermi('oa:iot:add')")
//    @PreAuthorize("@ss.hasPermi('oa:iot:add')")
    @Log(title = "IoT设备", businessType = BusinessType.INSERT)
    @RepeatSubmit()
    @PostMapping()
@@ -104,7 +104,7 @@
     * 修改IoT设备
     */
    @ApiOperation("修改IoT设备")
    @PreAuthorize("@ss.hasPermi('oa:iot:edit')")
//    @PreAuthorize("@ss.hasPermi('oa:iot:edit')")
    @Log(title = "IoT设备", businessType = BusinessType.UPDATE)
    @RepeatSubmit()
    @PutMapping()
@@ -116,7 +116,7 @@
     * 删除IoT设备
     */
    @ApiOperation("删除IoT设备")
    @PreAuthorize("@ss.hasPermi('oa:iot:remove')")
//    @PreAuthorize("@ss.hasPermi('oa:iot:remove')")
    @Log(title = "IoT设备" , businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult<Void> remove(@ApiParam("主键串")