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/IvrSceneFlowController.java | 32 +++++++++++++++-----------------
1 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneFlowController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneFlowController.java
index 7bf965e..b4c6aaa 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneFlowController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneFlowController.java
@@ -2,6 +2,8 @@
import java.util.List;
import javax.servlet.http.HttpServletResponse;
+
+import com.ruoyi.common.annotation.AddOrgId;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -23,14 +25,13 @@
/**
* AI澶栧懠娴佺▼Controller
- *
+ *
* @author smartor
* @date 2023-03-06
*/
@RestController
@RequestMapping("/smartor/ivrflow")
-public class IvrSceneFlowController extends BaseController
-{
+public class IvrSceneFlowController extends BaseController {
@Autowired
private IIvrSceneFlowService ivrSceneFlowService;
@@ -38,9 +39,9 @@
* 鏌ヨAI澶栧懠娴佺▼鍒楄〃
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrflow:list')")
- @PostMapping("/list")
- public TableDataInfo list(@RequestBody IvrSceneFlow ivrSceneFlow)
- {
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("list")
+ public TableDataInfo list(@RequestBody IvrSceneFlow ivrSceneFlow) {
startPage();
List<IvrSceneFlow> list = ivrSceneFlowService.selectIvrSceneFlowList(ivrSceneFlow);
return getDataTable(list);
@@ -52,8 +53,7 @@
//@PreAuthorize("@ss.hasPermi('smartor:ivrflow:export')")
@Log(title = "AI澶栧懠娴佺▼", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, IvrSceneFlow ivrSceneFlow)
- {
+ public void export(HttpServletResponse response, IvrSceneFlow ivrSceneFlow) {
List<IvrSceneFlow> list = ivrSceneFlowService.selectIvrSceneFlowList(ivrSceneFlow);
ExcelUtil<IvrSceneFlow> util = new ExcelUtil<IvrSceneFlow>(IvrSceneFlow.class);
util.exportExcel(response, list, "AI澶栧懠娴佺▼鏁版嵁");
@@ -64,8 +64,7 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrflow:query')")
@GetMapping(value = "/{flowid}")
- public AjaxResult getInfo(@PathVariable("flowid") Long flowid)
- {
+ public AjaxResult getInfo(@PathVariable("flowid") Long flowid) {
return success(ivrSceneFlowService.selectIvrSceneFlowByFlowid(flowid));
}
@@ -74,9 +73,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrflow:add')")
@Log(title = "AI澶栧懠娴佺▼", businessType = BusinessType.INSERT)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/add")
- public AjaxResult add(@RequestBody IvrSceneFlow ivrSceneFlow)
- {
+ public AjaxResult add(@RequestBody IvrSceneFlow ivrSceneFlow) {
return toAjax(ivrSceneFlowService.insertIvrSceneFlow(ivrSceneFlow));
}
@@ -85,9 +84,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrflow:edit')")
@Log(title = "AI澶栧懠娴佺▼", businessType = BusinessType.UPDATE)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/edit")
- public AjaxResult edit(@RequestBody IvrSceneFlow ivrSceneFlow)
- {
+ public AjaxResult edit(@RequestBody IvrSceneFlow ivrSceneFlow) {
return toAjax(ivrSceneFlowService.updateIvrSceneFlow(ivrSceneFlow));
}
@@ -96,9 +95,8 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrflow:remove')")
@Log(title = "AI澶栧懠娴佺▼", businessType = BusinessType.DELETE)
- @GetMapping("/remove/{flowids}")
- public AjaxResult remove(@PathVariable Long[] flowids)
- {
+ @GetMapping("/remove/{flowids}")
+ public AjaxResult remove(@PathVariable Long[] flowids) {
return toAjax(ivrSceneFlowService.deleteIvrSceneFlowByFlowids(flowids));
}
}
--
Gitblit v1.9.3