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/IvrLibIntentcategoryController.java | 31 +++++++++++++------------------
1 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibIntentcategoryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibIntentcategoryController.java
index da391c3..e810825 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibIntentcategoryController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibIntentcategoryController.java
@@ -15,6 +15,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.annotation.AddOrgId;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
@@ -31,8 +32,7 @@
*/
@RestController
@RequestMapping("/smartor/ivrlibintentcategory")
-public class IvrLibIntentcategoryController extends BaseController
-{
+public class IvrLibIntentcategoryController extends BaseController {
@Autowired
private IIvrLibIntentcategoryService ivrLibIntentcategoryService;
@@ -40,9 +40,9 @@
* 鏌ヨAI鎰忓浘搴撳垎绫诲垪琛�
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:list')")
- @PostMapping("/list")
- public TableDataInfo list(@RequestBody IvrLibIntentcategory ivrLibIntentcategory)
- {
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("/list")
+ public TableDataInfo list(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) {
startPage();
List<IvrLibIntentcategory> list = ivrLibIntentcategoryService.selectIvrLibIntentcategoryList(ivrLibIntentcategory);
return getDataTable(list);
@@ -54,8 +54,7 @@
//@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:export')")
@Log(title = "AI鎰忓浘搴撳垎绫�", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, IvrLibIntentcategory ivrLibIntentcategory)
- {
+ public void export(HttpServletResponse response, IvrLibIntentcategory ivrLibIntentcategory) {
List<IvrLibIntentcategory> list = ivrLibIntentcategoryService.selectIvrLibIntentcategoryList(ivrLibIntentcategory);
ExcelUtil<IvrLibIntentcategory> util = new ExcelUtil<IvrLibIntentcategory>(IvrLibIntentcategory.class);
util.exportExcel(response, list, "AI鎰忓浘搴撳垎绫绘暟鎹�");
@@ -66,8 +65,7 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:query')")
@GetMapping(value = "/{intertcatid}")
- public AjaxResult getInfo(@PathVariable("intertcatid") Long intertcatid)
- {
+ public AjaxResult getInfo(@PathVariable("intertcatid") Long intertcatid) {
return success(ivrLibIntentcategoryService.selectIvrLibIntentcategoryByIntertcatid(intertcatid));
}
@@ -76,11 +74,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:add')")
@Log(title = "AI鎰忓浘搴撳垎绫�", businessType = BusinessType.INSERT)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/add")
- public AjaxResult add(@RequestBody IvrLibIntentcategory ivrLibIntentcategory)
- {
- SysUser user = getLoginUser().getUser();
- ivrLibIntentcategory.setOrgid(user.getOrgid());
+ public AjaxResult add(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) {
return toAjax(ivrLibIntentcategoryService.insertIvrLibIntentcategory(ivrLibIntentcategory));
}
@@ -89,9 +85,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:edit')")
@Log(title = "AI鎰忓浘搴撳垎绫�", businessType = BusinessType.UPDATE)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/edit")
- public AjaxResult edit(@RequestBody IvrLibIntentcategory ivrLibIntentcategory)
- {
+ public AjaxResult edit(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) {
return toAjax(ivrLibIntentcategoryService.updateIvrLibIntentcategory(ivrLibIntentcategory));
}
@@ -100,9 +96,8 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:remove')")
@Log(title = "AI鎰忓浘搴撳垎绫�", businessType = BusinessType.DELETE)
- @GetMapping("/remove/{intertcatids}")
- public AjaxResult remove(@PathVariable Long[] intertcatids)
- {
+ @GetMapping("/remove/{intertcatids}")
+ public AjaxResult remove(@PathVariable Long[] intertcatids) {
return toAjax(ivrLibIntentcategoryService.deleteIvrLibIntentcategoryByIntertcatids(intertcatids));
}
}
--
Gitblit v1.9.3