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/IvrSceneIntentController.java | 32 +++++++++++++++-----------------
1 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneIntentController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneIntentController.java
index ff35d96..5ea737e 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneIntentController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrSceneIntentController.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/ivrintent")
-public class IvrSceneIntentController extends BaseController
-{
+public class IvrSceneIntentController extends BaseController {
@Autowired
private IIvrSceneIntentService ivrSceneIntentService;
@@ -38,9 +39,9 @@
* 鏌ヨAI澶栧懠鎰忓浘鍒楄〃
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrintent:list')")
- @PostMapping("/list")
- public TableDataInfo list(@RequestBody IvrSceneIntent ivrSceneIntent)
- {
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("list")
+ public TableDataInfo list(@RequestBody IvrSceneIntent ivrSceneIntent) {
startPage();
List<IvrSceneIntent> list = ivrSceneIntentService.selectIvrSceneIntentList(ivrSceneIntent);
return getDataTable(list);
@@ -52,8 +53,7 @@
//@PreAuthorize("@ss.hasPermi('smartor:ivrintent:export')")
@Log(title = "AI澶栧懠鎰忓浘", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, IvrSceneIntent ivrSceneIntent)
- {
+ public void export(HttpServletResponse response, IvrSceneIntent ivrSceneIntent) {
List<IvrSceneIntent> list = ivrSceneIntentService.selectIvrSceneIntentList(ivrSceneIntent);
ExcelUtil<IvrSceneIntent> util = new ExcelUtil<IvrSceneIntent>(IvrSceneIntent.class);
util.exportExcel(response, list, "AI澶栧懠鎰忓浘鏁版嵁");
@@ -64,8 +64,7 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrintent:query')")
@GetMapping(value = "/{sceneintentid}")
- public AjaxResult getInfo(@PathVariable("sceneintentid") Long sceneintentid)
- {
+ public AjaxResult getInfo(@PathVariable("sceneintentid") Long sceneintentid) {
return success(ivrSceneIntentService.selectIvrSceneIntentBySceneintentid(sceneintentid));
}
@@ -74,9 +73,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrintent:add')")
@Log(title = "AI澶栧懠鎰忓浘", businessType = BusinessType.INSERT)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/add")
- public AjaxResult add(@RequestBody IvrSceneIntent ivrSceneIntent)
- {
+ public AjaxResult add(@RequestBody IvrSceneIntent ivrSceneIntent) {
return toAjax(ivrSceneIntentService.insertIvrSceneIntent(ivrSceneIntent));
}
@@ -85,9 +84,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrintent:edit')")
@Log(title = "AI澶栧懠鎰忓浘", businessType = BusinessType.UPDATE)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/edit")
- public AjaxResult edit(@RequestBody IvrSceneIntent ivrSceneIntent)
- {
+ public AjaxResult edit(@RequestBody IvrSceneIntent ivrSceneIntent) {
return toAjax(ivrSceneIntentService.updateIvrSceneIntent(ivrSceneIntent));
}
@@ -96,9 +95,8 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrintent:remove')")
@Log(title = "AI澶栧懠鎰忓浘", businessType = BusinessType.DELETE)
- @GetMapping("/remove/{sceneintentids}")
- public AjaxResult remove(@PathVariable Long[] sceneintentids)
- {
+ @GetMapping("/remove/{sceneintentids}")
+ public AjaxResult remove(@PathVariable Long[] sceneintentids) {
return toAjax(ivrSceneIntentService.deleteIvrSceneIntentBySceneintentids(sceneintentids));
}
}
--
Gitblit v1.9.3