From 2b4b1997ded12ad506258407bd1ab1d3e472a89b Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 22 六月 2026 09:36:02 +0800
Subject: [PATCH] 【市一】人工超时时间延后一天
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceOutPathController.java | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 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 df4bdab..d2f4df2 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,12 +1,16 @@
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;
+import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.smartor.domain.BaseOrganization;
import com.smartor.domain.ServiceOutPath;
+import com.smartor.service.IBaseOrganizationService;
import com.smartor.service.IServiceOutPathService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -30,6 +34,9 @@
@Autowired
private IServiceOutPathService serviceOutPathService;
+ @Autowired
+ private IBaseOrganizationService baseOrganizationService;
+
/**
* 鏌ヨ涓婚敭鍒楄〃
*/
@@ -50,6 +57,15 @@
*/
@PostMapping("/getInfoByParam")
public AjaxResult param(@Param("param") String param) {
+ SysUser user = getLoginUser().getUser();
+ String orgname = "";
+ String orgid = user.getOrgid();
+ if(orgid != null && !"".equals(orgid)){
+ BaseOrganization baseOrganization = new BaseOrganization();
+ List<BaseOrganization> orgids = baseOrganizationService.selectBaseOrganizationList(baseOrganization);
+ orgname = orgids.get(0).getOrganizationName();
+ }
+
ServiceOutPath serviceOutPath = new ServiceOutPath();
serviceOutPath.setRadix(param);
List<ServiceOutPath> list = serviceOutPathService.selectServiceOutPathList(serviceOutPath);
@@ -57,6 +73,8 @@
ServiceOutPath serviceOutPath1 = list.get(0);
serviceOutPath1.setId(null);
serviceOutPath1.setRadix(null);
+ serviceOutPath1.setOrgid(orgid);
+ serviceOutPath1.setOrgname(orgname);
return success(serviceOutPath1);
}
return success(null);
@@ -89,6 +107,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));
@@ -100,6 +119,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