From 63ebc0007e9958bd6680c6841a7460b053275790 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 22 四月 2024 14:20:15 +0800
Subject: [PATCH] 将 @PreAuthorize 全部注释
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java | 50 ++++++++++++++++++++++----------------------------
1 files changed, 22 insertions(+), 28 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java
index a42ef85..8b71d1f 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementpayeeController.java
@@ -1,4 +1,4 @@
-package com.ruoyi.project.controller;
+package com.ruoyi.web.controller.project;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.RepeatSubmit;
@@ -19,15 +19,14 @@
/**
* 宸梾鎶ラ攢浠樻淇℃伅Controller
- *
+ *
* @author ruoyi
* @date 2023-05-10
*/
@Api("宸梾鎶ラ攢浠樻淇℃伅")
@RestController
@RequestMapping("/project/reimbursementpayee")
-public class ServiceReimbursementpayeeController extends BaseController
-{
+public class ServiceReimbursementpayeeController extends BaseController {
@Autowired
private IServiceReimbursementpayeeService serviceReimbursementpayeeService;
@@ -35,10 +34,9 @@
* 鏌ヨ宸梾鎶ラ攢浠樻淇℃伅鍒楄〃
*/
@ApiOperation("鏌ヨ宸梾鎶ラ攢浠樻淇℃伅鍒楄〃")
- //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:list')")
- @GetMapping("/list")
- public TableDataInfo list(ServiceReimbursementpayee serviceReimbursementpayee)
- {
+ //// @PreAuthorize("@ss.hasPermi('project:reimbursementpayee:list')")
+ @PostMapping("/list")
+ public TableDataInfo list(@RequestBody ServiceReimbursementpayee serviceReimbursementpayee) {
startPage();
List<ServiceReimbursementpayee> list = serviceReimbursementpayeeService.queryList(serviceReimbursementpayee);
return getDataTable(list);
@@ -48,11 +46,10 @@
* 瀵煎嚭宸梾鎶ラ攢浠樻淇℃伅鍒楄〃
*/
@ApiOperation("瀵煎嚭宸梾鎶ラ攢浠樻淇℃伅鍒楄〃")
- //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:export')")
+ //// @PreAuthorize("@ss.hasPermi('project:reimbursementpayee:export')")
@Log(title = "宸梾鎶ラ攢浠樻淇℃伅", businessType = BusinessType.EXPORT)
@GetMapping("/export")
- public AjaxResult export(ServiceReimbursementpayee serviceReimbursementpayee)
- {
+ public AjaxResult export(ServiceReimbursementpayee serviceReimbursementpayee) {
List<ServiceReimbursementpayee> list = serviceReimbursementpayeeService.queryList(serviceReimbursementpayee);
ExcelUtil<ServiceReimbursementpayee> util = new ExcelUtil<ServiceReimbursementpayee>(ServiceReimbursementpayee.class);
return util.exportExcel(list, "宸梾鎶ラ攢浠樻淇℃伅鏁版嵁");
@@ -62,10 +59,9 @@
* 鑾峰彇宸梾鎶ラ攢浠樻淇℃伅璇︾粏淇℃伅
*/
@ApiOperation("鑾峰彇宸梾鎶ラ攢浠樻淇℃伅璇︾粏淇℃伅")
- //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:query')")
+ //// @PreAuthorize("@ss.hasPermi('project:reimbursementpayee:query')")
@GetMapping(value = "/{id}")
- public AjaxResult getInfo(@PathVariable("id") String id)
- {
+ public AjaxResult getInfo(@PathVariable("id") String id) {
return AjaxResult.success(serviceReimbursementpayeeService.getById(id));
}
@@ -73,25 +69,24 @@
* 鏂板宸梾鎶ラ攢浠樻淇℃伅
*/
@ApiOperation("鏂板宸梾鎶ラ攢浠樻淇℃伅")
- //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:add')")
+ //// @PreAuthorize("@ss.hasPermi('project:reimbursementpayee:add')")
@Log(title = "宸梾鎶ラ攢浠樻淇℃伅", businessType = BusinessType.INSERT)
- @PostMapping
+ @PostMapping("/add")
@RepeatSubmit
- public AjaxResult add(@RequestBody ServiceReimbursementpayee serviceReimbursementpayee)
- {
- return toAjax(serviceReimbursementpayeeService.save(serviceReimbursementpayee));
+ public AjaxResult add(@RequestBody ServiceReimbursementpayee serviceReimbursementpayee) {
+ boolean save = serviceReimbursementpayeeService.save(serviceReimbursementpayee);
+ return AjaxResult.success(serviceReimbursementpayee);
}
/**
* 淇敼宸梾鎶ラ攢浠樻淇℃伅
*/
@ApiOperation("淇敼宸梾鎶ラ攢浠樻淇℃伅")
- //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:edit')")
+ //// @PreAuthorize("@ss.hasPermi('project:reimbursementpayee:edit')")
@Log(title = "宸梾鎶ラ攢浠樻淇℃伅", businessType = BusinessType.UPDATE)
- @PutMapping
- @RepeatSubmit
- public AjaxResult edit(@RequestBody ServiceReimbursementpayee serviceReimbursementpayee)
- {
+ @PostMapping("/reimbursementpayeeEdit")
+ @RepeatSubmit
+ public AjaxResult edit(@RequestBody ServiceReimbursementpayee serviceReimbursementpayee) {
return toAjax(serviceReimbursementpayeeService.updateById(serviceReimbursementpayee));
}
@@ -99,11 +94,10 @@
* 鍒犻櫎宸梾鎶ラ攢浠樻淇℃伅
*/
@ApiOperation("鍒犻櫎宸梾鎶ラ攢浠樻淇℃伅")
- //@PreAuthorize("@ss.hasPermi('project:reimbursementpayee:remove')")
+ //// @PreAuthorize("@ss.hasPermi('project:reimbursementpayee:remove')")
@Log(title = "宸梾鎶ラ攢浠樻淇℃伅", businessType = BusinessType.DELETE)
- @DeleteMapping("/{ids}")
- public AjaxResult remove(@PathVariable String[] ids)
- {
+ @GetMapping("/remove/{ids}")
+ public AjaxResult remove(@PathVariable String[] ids) {
return toAjax(serviceReimbursementpayeeService.removeByIds(Arrays.asList(ids)));
}
}
--
Gitblit v1.9.3