Selaa lähdekoodia

提交并部署

Zimo 1 päivä sitten
vanhempi
commit
057ae21494

+ 2 - 2
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/qhse/file/QhseInfoController.java

@@ -123,7 +123,7 @@ public class QhseInfoController {
 
     @PostMapping("/child/content-file")
     @Operation(summary = "获得资料库的分类目录及文件")
-    @PreAuthorize("@ss.hasPermission('rq:iot-info:query')")
+    @PreAuthorize("@ss.hasPermission('rq:qhse-info:query')")
     public CommonResult<List<QhseInfoRespVO>> getChildContentFile(@Valid IotInfoPageReqVO pageReqVO) {
         Long classId = pageReqVO.getClassId();
         List<QhseInfoRespVO> contentFiles = qhseInfoService.getChildContentFile(classId).stream().filter(e ->{
@@ -138,7 +138,7 @@ public class QhseInfoController {
 
     @PostMapping("/all/content-file")
     @Operation(summary = "获得QHSE资料库下的所有分类目录及文件")
-    @PreAuthorize("@ss.hasPermission('rq:iot-info:query')")
+    @PreAuthorize("@ss.hasPermission('rq:qhse-info:query')")
     public CommonResult<List<QhseInfoRespVO>> getAllContentFile(@Valid IotInfoPageReqVO pageReqVO) {
         Long classId = pageReqVO.getClassId();
         List<QhseInfoRespVO> contentFiles = qhseInfoService.getAllChildContentFile(classId).stream().filter(e ->{