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/IvrSceneRecallController.java | 30 ++++++++++++++----------------
1 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneRecallController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneRecallController.java
index b520448..e0bf4df 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneRecallController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneRecallController.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;
@@ -29,8 +31,7 @@
*/
@RestController
@RequestMapping("/smartor/ivrrecall")
-public class IvrSceneRecallController extends BaseController
-{
+public class IvrSceneRecallController extends BaseController {
@Autowired
private IIvrSceneRecallService ivrSceneRecallService;
@@ -38,9 +39,9 @@
* 鏌ヨAI澶栧懠閲嶆嫧閰嶇疆鍒楄〃
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:list')")
- @PostMapping("/list")
- public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall)
- {
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("list")
+ public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall) {
startPage();
List<IvrSceneRecall> list = ivrSceneRecallService.selectIvrSceneRecallList(ivrSceneRecall);
return getDataTable(list);
@@ -52,8 +53,7 @@
//@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:export')")
@Log(title = "AI澶栧懠閲嶆嫧閰嶇疆", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall)
- {
+ public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall) {
List<IvrSceneRecall> list = ivrSceneRecallService.selectIvrSceneRecallList(ivrSceneRecall);
ExcelUtil<IvrSceneRecall> util = new ExcelUtil<IvrSceneRecall>(IvrSceneRecall.class);
util.exportExcel(response, list, "AI澶栧懠閲嶆嫧閰嶇疆鏁版嵁");
@@ -64,8 +64,7 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:query')")
@GetMapping(value = "/{recallid}")
- public AjaxResult getInfo(@PathVariable("recallid") Long recallid)
- {
+ public AjaxResult getInfo(@PathVariable("recallid") Long recallid) {
return success(ivrSceneRecallService.selectIvrSceneRecallByRecallid(recallid));
}
@@ -74,9 +73,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:add')")
@Log(title = "AI澶栧懠閲嶆嫧閰嶇疆", businessType = BusinessType.INSERT)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/add")
- public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall)
- {
+ public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall) {
return toAjax(ivrSceneRecallService.insertIvrSceneRecall(ivrSceneRecall));
}
@@ -85,9 +84,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:edit')")
@Log(title = "AI澶栧懠閲嶆嫧閰嶇疆", businessType = BusinessType.UPDATE)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/edit")
- public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall)
- {
+ public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall) {
return toAjax(ivrSceneRecallService.updateIvrSceneRecall(ivrSceneRecall));
}
@@ -96,9 +95,8 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:remove')")
@Log(title = "AI澶栧懠閲嶆嫧閰嶇疆", businessType = BusinessType.DELETE)
- @GetMapping("/remove/{recallids}")
- public AjaxResult remove(@PathVariable Long[] recallids)
- {
+ @GetMapping("/remove/{recallids}")
+ public AjaxResult remove(@PathVariable Long[] recallids) {
return toAjax(ivrSceneRecallService.deleteIvrSceneRecallByRecallids(recallids));
}
}
--
Gitblit v1.9.3