From bf216df437cc213fc1233d1598cd902ad29aa3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Mon, 4 Nov 2024 13:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A3=80=E6=B5=8B=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DlInspectionProjectController.java | 8 ++++---- .../service/impl/InspectionInfoServiceImpl.java | 1 + .../service/impl/InspectionWorkNodeServiceImpl.java | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/DlInspectionProjectController.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/DlInspectionProjectController.java index d4bff581..dc64cb61 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/DlInspectionProjectController.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/DlInspectionProjectController.java @@ -39,14 +39,14 @@ public class DlInspectionProjectController { @PostMapping("/create") @Operation(summary = "创建检测项目") - @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:create')") +// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:create')") public CommonResult createDlInspectionProject(@Valid @RequestBody DlInspectionProjectSaveReqVO createReqVO) { return success(dlInspectionProjectService.createDlInspectionProject(createReqVO)); } @PutMapping("/update") @Operation(summary = "更新检测项目") - @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:update')") +// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:update')") public CommonResult updateDlInspectionProject(@Valid @RequestBody DlInspectionProjectSaveReqVO updateReqVO) { dlInspectionProjectService.updateDlInspectionProject(updateReqVO); return success(true); @@ -55,7 +55,7 @@ public class DlInspectionProjectController { @DeleteMapping("/delete") @Operation(summary = "删除检测项目") @Parameter(name = "id", description = "编号", required = true) - @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:delete')") +// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:delete')") public CommonResult deleteDlInspectionProject(@RequestParam("id") String id) { dlInspectionProjectService.deleteDlInspectionProject(id); return success(true); @@ -64,7 +64,7 @@ public class DlInspectionProjectController { @GetMapping("/get") @Operation(summary = "获得检测项目") @Parameter(name = "id", description = "编号", required = true, example = "1024") - @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:query')") +// @PreAuthorize("@ss.hasPermission('inspection:dl-inspection-project:query')") public CommonResult getDlInspectionProject(@RequestParam("id") String id) { DlInspectionProject dlInspectionProject = dlInspectionProjectService.getDlInspectionProject(id); return success(BeanUtils.toBean(dlInspectionProject, DlInspectionProjectRespVO.class)); diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java index 0f26a7b7..7459f02b 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java @@ -184,6 +184,7 @@ public class InspectionInfoServiceImpl extends ServiceImpl