Просмотр исходного кода

修改生成设备编号接口的权限

jishenghua 9 месяцев назад
Родитель
Сommit
10574dad68

+ 1 - 1
gyj-iot-boot/gyjiot-open-api/src/main/java/com/gyjiot/data/controller/DeviceController.java

@@ -236,7 +236,7 @@ public class DeviceController extends BaseController
     /**
      * 生成设备编号
      */
-    @PreAuthorize("@ss.hasPermi('iot:device:edit')")
+    @PreAuthorize("@ss.hasPermi('iot:device:add')")
     @GetMapping("/generator")
     @ApiOperation("生成设备编号")
     public AjaxResult generatorDeviceNum(Integer type){