From 5389773b2d1ae86daec68b00f67c3682dc907e01 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 22 十一月 2024 14:35:48 +0800
Subject: [PATCH] 代码提交(长期任务电话完成)
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedDrugController.java | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedDrugController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedDrugController.java
index 56cc1bd..f902833 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedDrugController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedDrugController.java
@@ -19,7 +19,7 @@
/**
* 鎮h�呯敤鑽褰旵ontroller
- *
+ *
* @author ruoyi
* @date 2023-06-16
*/
@@ -35,9 +35,9 @@
* 鏌ヨ鎮h�呯敤鑽褰曞垪琛�
*/
@ApiOperation("鏌ヨ鎮h�呯敤鑽褰曞垪琛�")
- @PreAuthorize("@ss.hasPermi('system:drug:list')")
- @GetMapping("/list")
- public TableDataInfo list(PatMedDrug patMedDrug)
+ //@PreAuthorize("@ss.hasPermi('system:drug:list')")
+ @PostMapping("/list")
+ public TableDataInfo list(@RequestBody PatMedDrug patMedDrug)
{
startPage();
List<PatMedDrug> list = patMedDrugService.selectPatMedDrugList(patMedDrug);
@@ -48,7 +48,7 @@
* 瀵煎嚭鎮h�呯敤鑽褰曞垪琛�
*/
@ApiOperation("瀵煎嚭鎮h�呯敤鑽褰曞垪琛�")
- @PreAuthorize("@ss.hasPermi('system:drug:export')")
+ //@PreAuthorize("@ss.hasPermi('system:drug:export')")
@Log(title = "鎮h�呯敤鑽褰�", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PatMedDrug patMedDrug)
@@ -62,7 +62,7 @@
* 鑾峰彇鎮h�呯敤鑽褰曡缁嗕俊鎭�
*/
@ApiOperation("鑾峰彇鎮h�呯敤鑽褰曡缁嗕俊鎭�")
- @PreAuthorize("@ss.hasPermi('system:drug:query')")
+ //@PreAuthorize("@ss.hasPermi('system:drug:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@@ -73,9 +73,9 @@
* 鏂板鎮h�呯敤鑽褰�
*/
@ApiOperation("鏂板鎮h�呯敤鑽褰�")
- @PreAuthorize("@ss.hasPermi('system:drug:add')")
+ //@PreAuthorize("@ss.hasPermi('system:drug:add')")
@Log(title = "鎮h�呯敤鑽褰�", businessType = BusinessType.INSERT)
- @PostMapping
+ @PostMapping("/add")
public AjaxResult add(@RequestBody PatMedDrug patMedDrug)
{
return toAjax(patMedDrugService.insertPatMedDrug(patMedDrug));
@@ -85,9 +85,9 @@
* 淇敼鎮h�呯敤鑽褰�
*/
@ApiOperation("淇敼鎮h�呯敤鑽褰�")
- @PreAuthorize("@ss.hasPermi('system:drug:edit')")
+ //@PreAuthorize("@ss.hasPermi('system:drug:edit')")
@Log(title = "鎮h�呯敤鑽褰�", businessType = BusinessType.UPDATE)
- @PutMapping
+ @PostMapping("/edit")
public AjaxResult edit(@RequestBody PatMedDrug patMedDrug)
{
return toAjax(patMedDrugService.updatePatMedDrug(patMedDrug));
@@ -97,9 +97,9 @@
* 鍒犻櫎鎮h�呯敤鑽褰�
*/
@ApiOperation("鍒犻櫎鎮h�呯敤鑽褰�")
- @PreAuthorize("@ss.hasPermi('system:drug:remove')")
+ //@PreAuthorize("@ss.hasPermi('system:drug:remove')")
@Log(title = "鎮h�呯敤鑽褰�", businessType = BusinessType.DELETE)
- @DeleteMapping("/{ids}")
+ @GetMapping("/remove/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(patMedDrugService.deletePatMedDrugByIds(ids));
--
Gitblit v1.9.3