From 37b79cfd8e5ecdc6f9f09750583f998183c338fb Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 07 十一月 2024 10:55:27 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java index f49d9cf..b109bb2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java @@ -37,9 +37,9 @@ * 鏌ヨ鎮h�呬綋閲嶈褰曞垪琛� */ @ApiOperation("鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�") - @PreAuthorize("@ss.hasPermi('system:weight:list')") - @GetMapping("/list") - public TableDataInfo list(PatMedWeight patMedWeight) + //@PreAuthorize("@ss.hasPermi('system:weight:list')") + @PostMapping("/list") + public TableDataInfo list(@RequestBody PatMedWeight patMedWeight) { startPage(); List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight); @@ -50,7 +50,7 @@ * 瀵煎嚭鎮h�呬綋閲嶈褰曞垪琛� */ @ApiOperation("瀵煎嚭鎮h�呬綋閲嶈褰曞垪琛�") - @PreAuthorize("@ss.hasPermi('system:weight:export')") + //@PreAuthorize("@ss.hasPermi('system:weight:export')") @Log(title = "鎮h�呬綋閲嶈褰�", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, PatMedWeight patMedWeight) @@ -64,7 +64,7 @@ * 鑾峰彇鎮h�呬綋閲嶈褰曡缁嗕俊鎭� */ @ApiOperation("鑾峰彇鎮h�呬綋閲嶈褰曡缁嗕俊鎭�") - @PreAuthorize("@ss.hasPermi('system:weight:query')") + //@PreAuthorize("@ss.hasPermi('system:weight:query')") @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class) @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) @@ -76,9 +76,9 @@ * 鏂板鎮h�呬綋閲嶈褰� */ @ApiOperation("鏂板鎮h�呬綋閲嶈褰�") - @PreAuthorize("@ss.hasPermi('system:weight:add')") + //@PreAuthorize("@ss.hasPermi('system:weight:add')") @Log(title = "鎮h�呬綋閲嶈褰�", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") public AjaxResult add(@RequestBody PatMedWeight patMedWeight) { return toAjax(patMedWeightService.insertPatMedWeight(patMedWeight)); @@ -88,9 +88,9 @@ * 淇敼鎮h�呬綋閲嶈褰� */ @ApiOperation("淇敼鎮h�呬綋閲嶈褰�") - @PreAuthorize("@ss.hasPermi('system:weight:edit')") + //@PreAuthorize("@ss.hasPermi('system:weight:edit')") @Log(title = "淇敼鎮h�呬綋閲嶈褰�", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/edit") public AjaxResult edit(@RequestBody PatMedWeight patMedWeight) { return toAjax(patMedWeightService.updatePatMedWeight(patMedWeight)); @@ -100,10 +100,10 @@ * 鍒犻櫎鎮h�呬綋閲嶈褰� */ @ApiOperation("鍒犻櫎鎮h�呬綋閲嶈褰�") - @PreAuthorize("@ss.hasPermi('system:weight:remove')") + //@PreAuthorize("@ss.hasPermi('system:weight:remove')") @Log(title = "鍒犻櫎鎮h�呬綋閲嶈褰�", businessType = BusinessType.DELETE) @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class) - @DeleteMapping("/{ids}") + @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(patMedWeightService.deletePatMedWeightByIds(ids)); -- Gitblit v1.9.3