From 11f5377099e0d200d9aa1fe1f584527347f2d411 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期四, 08 五月 2025 10:56:05 +0800 Subject: [PATCH] 添加过滤表 --- src/main/java/com/ruoyi/basic/controller/CustomerController.java | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/ruoyi/basic/controller/CustomerController.java b/src/main/java/com/ruoyi/basic/controller/CustomerController.java index 1c27557..1a81652 100644 --- a/src/main/java/com/ruoyi/basic/controller/CustomerController.java +++ b/src/main/java/com/ruoyi/basic/controller/CustomerController.java @@ -6,8 +6,6 @@ import com.ruoyi.basic.pojo.Customer; import com.ruoyi.basic.service.ICustomerService; import lombok.AllArgsConstructor; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; @@ -34,13 +32,11 @@ @AllArgsConstructor public class CustomerController extends BaseController { - @Autowired private ICustomerService customerService; /** * 鏌ヨ瀹㈡埛妗f鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('system:customer:list')") @GetMapping("/list") public TableDataInfo list(Customer customer) { @@ -52,7 +48,6 @@ /** * 瀵煎嚭瀹㈡埛妗f鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('system:customer:export')") @Log(title = "瀹㈡埛妗f", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, Customer customer) @@ -65,7 +60,6 @@ /** * 鑾峰彇瀹㈡埛妗f璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:customer:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -75,9 +69,8 @@ /** * 鏂板瀹㈡埛妗f */ - @PreAuthorize("@ss.hasPermi('system:customer:add')") @Log(title = "瀹㈡埛妗f", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping ("/addCustomer") public AjaxResult add(@RequestBody Customer customer) { return toAjax(customerService.insertCustomer(customer)); @@ -86,7 +79,6 @@ /** * 淇敼瀹㈡埛妗f */ - @PreAuthorize("@ss.hasPermi('system:customer:edit')") @Log(title = "瀹㈡埛妗f", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody Customer customer) @@ -97,7 +89,6 @@ /** * 鍒犻櫎瀹㈡埛妗f */ - @PreAuthorize("@ss.hasPermi('system:customer:remove')") @Log(title = "瀹㈡埛妗f", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) -- Gitblit v1.9.3