From 723d38375c45d24737bfef6f33a9686254abf99b Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 17 十月 2024 13:42:27 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java index a8cf7de..1313205 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java @@ -25,7 +25,7 @@ */ @Api(description = "鎮h�呮鏌ユ楠岃褰�") @RestController -@RequestMapping("/system/inspection") +@RequestMapping("/smartor/inspection") public class PatMedInspectionController extends BaseController { @Autowired private IPatMedInspectionService patMedInspectionService; @@ -34,9 +34,9 @@ * 鏌ヨ鎮h�呮鏌ユ楠岃褰曞垪琛� */ @ApiOperation("鏌ヨ鎮h�呮鏌ユ楠岃褰曞垪琛�") - @PreAuthorize("@ss.hasPermi('system:inspection:list')") - @GetMapping("/list") - public TableDataInfo list(PatMedInspection patMedInspection) { + //@PreAuthorize("@ss.hasPermi('system:inspection:list')") + @PostMapping("/list") + public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) { startPage(); List<PatMedInspection> list = patMedInspectionService.selectPatMedInspectionList(patMedInspection); return getDataTable(list); @@ -46,7 +46,7 @@ * 瀵煎嚭鎮h�呮鏌ユ楠岃褰曞垪琛� */ @ApiOperation("瀵煎嚭鎮h�呮鏌ユ楠岃褰曞垪琛�") - @PreAuthorize("@ss.hasPermi('system:inspection:export')") + //@PreAuthorize("@ss.hasPermi('system:inspection:export')") @Log(title = "鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, PatMedInspection patMedInspection) { @@ -59,7 +59,7 @@ * 鑾峰彇鎮h�呮鏌ユ楠岃褰曡缁嗕俊鎭� */ @ApiOperation("鑾峰彇鎮h�呮鏌ユ楠岃褰曡缁嗕俊鎭�") - @PreAuthorize("@ss.hasPermi('system:inspection:query')") + //@PreAuthorize("@ss.hasPermi('system:inspection:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(patMedInspectionService.selectPatMedInspectionById(id)); @@ -68,10 +68,10 @@ /** * 鏂板鎮h�呮鏌ユ楠岃褰� */ - @PreAuthorize("@ss.hasPermi('system:inspection:add')") + //@PreAuthorize("@ss.hasPermi('system:inspection:add')") @Log(title = "鏂板鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.INSERT) @ApiOperation("鏂板鎮h�呮鏌ユ楠岃褰�") - @PostMapping + @PostMapping("/add") public AjaxResult add(@RequestBody PatMedInspection patMedInspection) { return toAjax(patMedInspectionService.insertPatMedInspection(patMedInspection)); } @@ -79,10 +79,10 @@ /** * 淇敼鎮h�呮鏌ユ楠岃褰� */ - @PreAuthorize("@ss.hasPermi('system:inspection:edit')") + //@PreAuthorize("@ss.hasPermi('system:inspection:edit')") @Log(title = "淇敼鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.UPDATE) @ApiOperation("淇敼鎮h�呮鏌ユ楠岃褰�") - @PutMapping + @PostMapping("/edit") public AjaxResult edit(@RequestBody PatMedInspection patMedInspection) { return toAjax(patMedInspectionService.updatePatMedInspection(patMedInspection)); } @@ -90,10 +90,10 @@ /** * 鍒犻櫎鎮h�呮鏌ユ楠岃褰� */ - @PreAuthorize("@ss.hasPermi('system:inspection:remove')") + //@PreAuthorize("@ss.hasPermi('system:inspection:remove')") @Log(title = "鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.DELETE) @ApiOperation("鎮h�呮鏌ユ楠岃褰�") - @DeleteMapping("/{ids}") + @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(patMedInspectionService.deletePatMedInspectionByIds(ids)); } -- Gitblit v1.9.3