From 6393d6ba70099f1b47f4124e06426f016fb28052 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 01 七月 2025 14:59:58 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java
index 45c2495..7b26833 100644
--- a/smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java
@@ -116,16 +116,16 @@
 
     @Override
     public PatMedRes selectPatMedOuthospCount(PatMedReq patMedReq) {
-        // 鑾峰彇褰撳墠鐧婚檰浜虹殑閮ㄩ棬鏉冮檺
-        if (CollectionUtils.isEmpty(patMedReq.getDeptcodeList())) {
-            Long userId = SecurityUtils.getUserId();
-            List<SysDept> sysDepts = sysUserDeptMapper.selectDeptListByUserId(userId);
-            List<String> deptCode = new ArrayList<>();
-            for (SysDept sysDept : sysDepts) {
-                deptCode.add(sysDept.getDeptId().toString());
-            }
-            patMedReq.setDeptcodeList(deptCode);
-        }
+//        // 鑾峰彇褰撳墠鐧婚檰浜虹殑閮ㄩ棬鏉冮檺
+//        if (CollectionUtils.isEmpty(patMedReq.getDeptcodeList())) {
+//            Long userId = SecurityUtils.getUserId();
+//            List<SysDept> sysDepts = sysUserDeptMapper.selectDeptListByUserId(userId);
+//            List<String> deptCode = new ArrayList<>();
+//            for (SysDept sysDept : sysDepts) {
+//                deptCode.add(sysDept.getDeptId().toString());
+//            }
+//            patMedReq.setDeptcodeList(deptCode);
+//        }
         return patMedOuthospMapper.selectPatMedOuthospCount(patMedReq);
     }
 
@@ -284,6 +284,9 @@
         serviceSubtask.setUpdateTime(new Date());
         serviceSubtask.setUpdateBy(serviceTask.getUpdateBy());
         serviceSubtask.setUpdateTime(new Date());
+        serviceSubtask.setVisitDeptCode(patMedOuthosp.getDeptcode());
+        serviceSubtask.setVisitDeptName(patMedOuthosp.getDeptname());
+        serviceSubtask.setUpdateTime(new Date());
         //璁剧疆鍙戦�佹椂闂�
         if (serviceTask.getSendDay() == null) serviceTask.setSendDay(1L);
         Date newDate = addDays(patMedOuthosp.getAdmitdate(), serviceTask.getSendDay().intValue());

--
Gitblit v1.9.3