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/IvrTaskcallrecordController.java | 30 ++++++++++++++----------------
1 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskcallrecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskcallrecordController.java
index ed6609f..52509f8 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskcallrecordController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrTaskcallrecordController.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/ivrtaskcallrecord")
-public class IvrTaskcallrecordController extends BaseController
-{
+public class IvrTaskcallrecordController extends BaseController {
@Autowired
private IIvrTaskcallrecordService ivrTaskcallrecordService;
@@ -38,9 +39,9 @@
* 鏌ヨ璇煶浠诲姟鍛煎彨璁板綍鍒楄〃
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:list')")
- @PostMapping("/list")
- public TableDataInfo list(@RequestBody IvrTaskcallrecord ivrTaskcallrecord)
- {
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("list")
+ public TableDataInfo list(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) {
startPage();
List<IvrTaskcallrecord> list = ivrTaskcallrecordService.selectIvrTaskcallrecordList(ivrTaskcallrecord);
return getDataTable(list);
@@ -52,8 +53,7 @@
//@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:export')")
@Log(title = "璇煶浠诲姟鍛煎彨璁板綍", businessType = BusinessType.EXPORT)
@PostMapping("/export")
- public void export(HttpServletResponse response, IvrTaskcallrecord ivrTaskcallrecord)
- {
+ public void export(HttpServletResponse response, IvrTaskcallrecord ivrTaskcallrecord) {
List<IvrTaskcallrecord> list = ivrTaskcallrecordService.selectIvrTaskcallrecordList(ivrTaskcallrecord);
ExcelUtil<IvrTaskcallrecord> util = new ExcelUtil<IvrTaskcallrecord>(IvrTaskcallrecord.class);
util.exportExcel(response, list, "璇煶浠诲姟鍛煎彨璁板綍鏁版嵁");
@@ -64,8 +64,7 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:query')")
@GetMapping(value = "/{uuid}")
- public AjaxResult getInfo(@PathVariable("uuid") String uuid)
- {
+ public AjaxResult getInfo(@PathVariable("uuid") String uuid) {
return success(ivrTaskcallrecordService.selectIvrTaskcallrecordByUuid(uuid));
}
@@ -74,9 +73,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:add')")
@Log(title = "璇煶浠诲姟鍛煎彨璁板綍", businessType = BusinessType.INSERT)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/add")
- public AjaxResult add(@RequestBody IvrTaskcallrecord ivrTaskcallrecord)
- {
+ public AjaxResult add(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) {
return toAjax(ivrTaskcallrecordService.insertIvrTaskcallrecord(ivrTaskcallrecord));
}
@@ -85,9 +84,9 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:edit')")
@Log(title = "璇煶浠诲姟鍛煎彨璁板綍", businessType = BusinessType.UPDATE)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/edit")
- public AjaxResult edit(@RequestBody IvrTaskcallrecord ivrTaskcallrecord)
- {
+ public AjaxResult edit(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) {
return toAjax(ivrTaskcallrecordService.updateIvrTaskcallrecord(ivrTaskcallrecord));
}
@@ -96,9 +95,8 @@
*/
//@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:remove')")
@Log(title = "璇煶浠诲姟鍛煎彨璁板綍", businessType = BusinessType.DELETE)
- @GetMapping("/remove/{uuids}")
- public AjaxResult remove(@PathVariable String[] uuids)
- {
+ @GetMapping("/remove/{uuids}")
+ public AjaxResult remove(@PathVariable String[] uuids) {
return toAjax(ivrTaskcallrecordService.deleteIvrTaskcallrecordByUuids(uuids));
}
}
--
Gitblit v1.9.3