From 89e166f18d6e33efde0dda97f1fb27f29e675660 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期一, 05 八月 2024 17:57:45 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java index d7502dd..7731e44 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java @@ -43,9 +43,9 @@ * 鏌ヨ鎮h�呴棬璇婅褰曞垪琛� */ @PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") - @GetMapping("/list") + @PostMapping("/selectPatMedOuthospList") @ApiOperation("鏌ヨ鎮h�呴棬璇婅褰曞垪琛�") - public TableDataInfo list(PatMedOuthosp patMedOuthosp) { + public TableDataInfo selectPatMedOuthosplist(@RequestBody PatMedOuthosp patMedOuthosp) { startPage(); List<PatMedOuthosp> list = patMedOuthospService.selectPatMedOuthospList(patMedOuthosp); return getDataTable(list); @@ -70,7 +70,7 @@ @ApiOperation("鑾峰彇鎮h�呴棬璇婅褰曡缁嗕俊鎭�") @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class) @PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") - @GetMapping(value = "/{id}") + @GetMapping(value = "getInfo/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(patMedOuthospService.selectPatMedOuthospById(id)); } @@ -81,7 +81,7 @@ @ApiOperation("鏂板鎮h�呴棬璇婅褰�") @PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')") @Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp) { return toAjax(patMedOuthospService.insertPatMedOuthosp(patMedOuthosp)); } @@ -92,7 +92,7 @@ @ApiOperation("淇敼鎮h�呴棬璇婅褰�") @PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')") @Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/edit") public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp) { return toAjax(patMedOuthospService.updatePatMedOuthosp(patMedOuthosp)); } @@ -104,7 +104,7 @@ @PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')") @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class) @Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") + @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(patMedOuthospService.deletePatMedOuthospByIds(ids)); } -- Gitblit v1.9.3