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/ServiceOutPathController.java |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceOutPathController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceOutPathController.java
index 5e8c4fe..4b117e0 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceOutPathController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceOutPathController.java
@@ -1,5 +1,6 @@
 package com.ruoyi.web.controller.smartor;
 
+import com.ruoyi.common.annotation.AddOrgId;
 import com.ruoyi.common.annotation.Log;
 import com.ruoyi.common.core.controller.BaseController;
 import com.ruoyi.common.core.domain.AjaxResult;
@@ -50,13 +51,15 @@
      */
     @PostMapping("/getInfoByParam")
     public AjaxResult param(@Param("param") String param) {
-        ServiceOutPath serviceOutPath=new ServiceOutPath();
+        ServiceOutPath serviceOutPath = new ServiceOutPath();
         serviceOutPath.setRadix(param);
         List<ServiceOutPath> list = serviceOutPathService.selectServiceOutPathList(serviceOutPath);
-        ServiceOutPath serviceOutPath1 = list.get(0);
-        serviceOutPath1.setId(null);
-        serviceOutPath1.setRadix(null);
-        if (CollectionUtils.isNotEmpty(list)) return success(serviceOutPath1);
+        if (CollectionUtils.isNotEmpty(list)) {
+            ServiceOutPath serviceOutPath1 = list.get(0);
+            serviceOutPath1.setId(null);
+            serviceOutPath1.setRadix(null);
+            return success(serviceOutPath1);
+        }
         return success(null);
     }
 
@@ -87,6 +90,7 @@
      */
     @ApiOperation("鏂板涓婚敭")
     @Log(title = "涓婚敭", businessType = BusinessType.INSERT)
+    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
     @PostMapping("/add")
     public AjaxResult add(@RequestBody ServiceOutPath serviceOutPath) {
         return toAjax(serviceOutPathService.insertServiceOutPath(serviceOutPath));
@@ -98,6 +102,7 @@
     @ApiOperation("淇敼涓婚敭")
     //@PreAuthorize("@ss.hasPermi('smartor:path:edit')")
     @Log(title = "涓婚敭", businessType = BusinessType.UPDATE)
+    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
     @PostMapping("/edit")
     public AjaxResult edit(@RequestBody ServiceOutPath serviceOutPath) {
         return toAjax(serviceOutPathService.updateServiceOutPath(serviceOutPath));

--
Gitblit v1.9.3