From 55d724ddd52b2acb6e7ee2d291e04e4b6d96ad19 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 09 十一月 2026 16:06:47 +0800
Subject: [PATCH] sync: service_subtask 科室病区字段重命名对齐

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceOutPathController.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 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 0b98aaa..17f50f7 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
@@ -11,9 +11,11 @@
 import com.ruoyi.common.utils.StringUtils;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.smartor.domain.BaseOrganization;
+import com.smartor.domain.PatArchive;
 import com.smartor.domain.ServiceOutPath;
 import com.smartor.domain.ServiceTask;
 import com.smartor.service.IBaseOrganizationService;
+import com.smartor.service.IPatArchiveService;
 import com.smartor.service.IServiceOutPathService;
 import com.smartor.service.IServiceTaskService;
 import io.swagger.annotations.Api;
@@ -42,6 +44,9 @@
 
     @Autowired
     private IServiceTaskService serviceTaskService;
+
+    @Autowired
+    IPatArchiveService patArchiveService;
 
     @Autowired
     private IBaseOrganizationService baseOrganizationService;
@@ -90,6 +95,14 @@
                     serviceOutPath1.setOrgname(orgname);
                 }
             }
+//            if(StringUtils.isNotEmpty(serviceOutPath1.getParam2())){
+//                RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample();
+//                Long patId = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceOutPath1.getParam2(), pri_key));
+//                if(patId != null){
+//                    PatArchive patArchive = patArchiveService.selectPatArchiveByPatid(patId);
+//                    serviceOutPath1.setPatArchive(patArchive);
+//                }
+//            }
             return success(serviceOutPath1);
         }
         return success(null);
@@ -128,6 +141,17 @@
         return toAjax(serviceOutPathService.insertServiceOutPath(serviceOutPath));
     }
 
+
+    /**
+     * 鏂板涓婚敭
+     */
+    @ApiOperation("鏂板涓婚敭")
+    @Log(title = "涓婚敭", businessType = BusinessType.INSERT)
+    @PostMapping("/addOutPath")
+    public AjaxResult addOutPath(@RequestBody ServiceOutPath serviceOutPath) {
+        return success(serviceOutPathService.addOutPath(serviceOutPath));
+    }
+
     /**
      * 淇敼涓婚敭
      */

--
Gitblit v1.9.3