From c80135e5c3f7bfab96ba558a910a06f1e587c53c Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 07 一月 2026 16:14:04 +0800
Subject: [PATCH] 1.新增@AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") 2.将新增orgid的拦截器关掉 3.登陆新增campusid
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibExceptionController.java | 30 +++++++++++++-----------------
1 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibExceptionController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibExceptionController.java
index d91ac64..4e95895 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibExceptionController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibExceptionController.java
@@ -2,6 +2,7 @@
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,14 +24,13 @@
/**
* 闂嵎寮傚父Controller
- *
+ *
* @author ruoyi
* @date 2023-03-02
*/
@RestController
@RequestMapping("/smartor/svyexception")
-public class SvyLibExceptionController extends BaseController
-{
+public class SvyLibExceptionController extends BaseController {
@Autowired
private ISvyLibExceptionService svyLibExceptionService;
@@ -38,9 +38,8 @@
* 鏌ヨ闂嵎寮傚父鍒楄〃
*/
//@PreAuthorize("@ss.hasPermi('smartor:svyexception:list')")
- @PostMapping("/list")
- public TableDataInfo list(@RequestBody SvyLibException svyLibException)
- {
+ @PostMapping("list")
+ public TableDataInfo list(@RequestBody SvyLibException svyLibException) {
startPage();
List<SvyLibException> list = svyLibExceptionService.selectSvyLibExceptionList(svyLibException);
return getDataTable(list);
@@ -52,8 +51,7 @@
//@PreAuthorize("@ss.hasPermi('smartor:svyexception:export')")
@Log(title = "闂嵎寮傚父", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, SvyLibException svyLibException)
- {
+ public void export(HttpServletResponse response, SvyLibException svyLibException) {
List<SvyLibException> list = svyLibExceptionService.selectSvyLibExceptionList(svyLibException);
ExcelUtil<SvyLibException> util = new ExcelUtil<SvyLibException>(SvyLibException.class);
util.exportExcel(response, list, "闂嵎寮傚父鏁版嵁");
@@ -64,8 +62,7 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:svyexception:query')")
@GetMapping(value = "/{ecid}")
- public AjaxResult getInfo(@PathVariable("ecid") Long ecid)
- {
+ public AjaxResult getInfo(@PathVariable("ecid") Long ecid) {
return success(svyLibExceptionService.selectSvyLibExceptionByEcid(ecid));
}
@@ -74,9 +71,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:svyexception:add')")
@Log(title = "闂嵎寮傚父", businessType = BusinessType.INSERT)
+
@PostMapping("/add")
- public AjaxResult add(@RequestBody SvyLibException svyLibException)
- {
+ public AjaxResult add(@RequestBody SvyLibException svyLibException) {
return toAjax(svyLibExceptionService.insertSvyLibException(svyLibException));
}
@@ -85,9 +82,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:svyexception:edit')")
@Log(title = "闂嵎寮傚父", businessType = BusinessType.UPDATE)
+
@PostMapping("/edit")
- public AjaxResult edit(@RequestBody SvyLibException svyLibException)
- {
+ public AjaxResult edit(@RequestBody SvyLibException svyLibException) {
return toAjax(svyLibExceptionService.updateSvyLibException(svyLibException));
}
@@ -96,9 +93,8 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:svyexception:remove')")
@Log(title = "闂嵎寮傚父", businessType = BusinessType.DELETE)
- @GetMapping("/remove/{ecids}")
- public AjaxResult remove(@PathVariable Long[] ecids)
- {
+ @GetMapping("/remove/{ecids}")
+ public AjaxResult remove(@PathVariable Long[] ecids) {
return toAjax(svyLibExceptionService.deleteSvyLibExceptionByEcids(ecids));
}
}
--
Gitblit v1.9.3