From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 18 九月 2024 09:39:02 +0800
Subject: [PATCH] 代码提交
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SchemeAutofinshruleController.java | 46 ++++++++++++++++++++--------------------------
1 files changed, 20 insertions(+), 26 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SchemeAutofinshruleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SchemeAutofinshruleController.java
index 7412fa9..61238b2 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SchemeAutofinshruleController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SchemeAutofinshruleController.java
@@ -1,7 +1,8 @@
-package com.ruoyi.smartor.controller;
+package com.ruoyi.web.controller.smartor;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
+
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -23,24 +24,22 @@
/**
* 鏂规缁撴瑙勫垯Controller
- *
+ *
* @author smartor
* @date 2023-03-04
*/
@RestController
@RequestMapping("/smartor/schemeautofinshrule")
-public class SchemeAutofinshruleController extends BaseController
-{
+public class SchemeAutofinshruleController extends BaseController {
@Autowired
private ISchemeAutofinshruleService schemeAutofinshruleService;
/**
* 鏌ヨ鏂规缁撴瑙勫垯鍒楄〃
*/
- @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:list')")
- @GetMapping("/list")
- public TableDataInfo list(SchemeAutofinshrule schemeAutofinshrule)
- {
+ //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:list')")
+ @PostMapping("/list")
+ public TableDataInfo list(@RequestBody SchemeAutofinshrule schemeAutofinshrule) {
startPage();
List<SchemeAutofinshrule> list = schemeAutofinshruleService.selectSchemeAutofinshruleList(schemeAutofinshrule);
return getDataTable(list);
@@ -49,11 +48,10 @@
/**
* 瀵煎嚭鏂规缁撴瑙勫垯鍒楄〃
*/
- @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:export')")
+ //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:export')")
@Log(title = "鏂规缁撴瑙勫垯", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, SchemeAutofinshrule schemeAutofinshrule)
- {
+ public void export(HttpServletResponse response, SchemeAutofinshrule schemeAutofinshrule) {
List<SchemeAutofinshrule> list = schemeAutofinshruleService.selectSchemeAutofinshruleList(schemeAutofinshrule);
ExcelUtil<SchemeAutofinshrule> util = new ExcelUtil<SchemeAutofinshrule>(SchemeAutofinshrule.class);
util.exportExcel(response, list, "鏂规缁撴瑙勫垯鏁版嵁");
@@ -62,43 +60,39 @@
/**
* 鑾峰彇鏂规缁撴瑙勫垯璇︾粏淇℃伅
*/
- @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:query')")
+ //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:query')")
@GetMapping(value = "/{id}")
- public AjaxResult getInfo(@PathVariable("id") Long id)
- {
+ public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(schemeAutofinshruleService.selectSchemeAutofinshruleById(id));
}
/**
* 鏂板鏂规缁撴瑙勫垯
*/
- @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:add')")
+ //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:add')")
@Log(title = "鏂规缁撴瑙勫垯", businessType = BusinessType.INSERT)
- @PostMapping
- public AjaxResult add(@RequestBody SchemeAutofinshrule schemeAutofinshrule)
- {
+ @PostMapping("/add")
+ public AjaxResult add(@RequestBody SchemeAutofinshrule schemeAutofinshrule) {
return toAjax(schemeAutofinshruleService.insertSchemeAutofinshrule(schemeAutofinshrule));
}
/**
* 淇敼鏂规缁撴瑙勫垯
*/
- @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:edit')")
+ //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:edit')")
@Log(title = "鏂规缁撴瑙勫垯", businessType = BusinessType.UPDATE)
- @PutMapping
- public AjaxResult edit(@RequestBody SchemeAutofinshrule schemeAutofinshrule)
- {
+ @PostMapping("/edit")
+ public AjaxResult edit(@RequestBody SchemeAutofinshrule schemeAutofinshrule) {
return toAjax(schemeAutofinshruleService.updateSchemeAutofinshrule(schemeAutofinshrule));
}
/**
* 鍒犻櫎鏂规缁撴瑙勫垯
*/
- @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:remove')")
+ //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:remove')")
@Log(title = "鏂规缁撴瑙勫垯", businessType = BusinessType.DELETE)
- @DeleteMapping("/{ids}")
- public AjaxResult remove(@PathVariable Long[] ids)
- {
+ @GetMapping("/remove/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(schemeAutofinshruleService.deleteSchemeAutofinshruleByIds(ids));
}
}
--
Gitblit v1.9.3