From 78b0e909aa6ece787091e5d81450c8927ef2599e Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期五, 15 十二月 2023 17:03:12 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 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..4b32eed 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 @@ -38,8 +38,8 @@ */ @ApiOperation("鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�") @PreAuthorize("@ss.hasPermi('system:weight:list')") - @GetMapping("/list") - public TableDataInfo list(PatMedWeight patMedWeight) + @PostMapping("/list") + public TableDataInfo list(@RequestBody PatMedWeight patMedWeight) { startPage(); List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight); @@ -78,7 +78,7 @@ @ApiOperation("鏂板鎮h�呬綋閲嶈褰�") @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)); @@ -90,7 +90,7 @@ @ApiOperation("淇敼鎮h�呬綋閲嶈褰�") @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)); @@ -103,7 +103,7 @@ @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