Commit 8e9759d38f9c727c0c333a90336515437fcc21dc
1 parent
568d3518
♻️ refactor(mes): 修正质检缺陷记录删除权限
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/qc/defectrecord/MesQcDefectRecordController.java
| @@ -46,7 +46,7 @@ public class MesQcDefectRecordController { | @@ -46,7 +46,7 @@ public class MesQcDefectRecordController { | ||
| 46 | @DeleteMapping("/delete") | 46 | @DeleteMapping("/delete") |
| 47 | @Operation(summary = "删除质检缺陷记录") | 47 | @Operation(summary = "删除质检缺陷记录") |
| 48 | @Parameter(name = "id", description = "编号", required = true) | 48 | @Parameter(name = "id", description = "编号", required = true) |
| 49 | - @PreAuthorize("@ss.hasPermission('mes:qc-defect:update')") | 49 | + @PreAuthorize("@ss.hasPermission('mes:qc-defect:delete')") |
| 50 | public CommonResult<Boolean> deleteDefectRecord(@RequestParam("id") Long id) { | 50 | public CommonResult<Boolean> deleteDefectRecord(@RequestParam("id") Long id) { |
| 51 | defectRecordService.deleteDefectRecord(id); | 51 | defectRecordService.deleteDefectRecord(id); |
| 52 | return success(true); | 52 | return success(true); |