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