From 40fc47ece733ddc3113c2413ae27aadbf102a9e2 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 23 四月 2026 14:49:49 +0800
Subject: [PATCH] 提交

---
 smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 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 73c1cca..97496b2 100644
--- a/smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/PatMedOuthospServiceImpl.java
@@ -76,6 +76,11 @@
         PatMedOuthospQueryReq patMedOuthospQueryReq = DtoConversionUtils.sourceToTarget(patMedOuthosp, PatMedOuthospQueryReq.class);
         patMedOuthospQueryReq.setBeginAdmitdate(patMedOuthosp.getBeginTime());
         patMedOuthospQueryReq.setEndAdmitdate(patMedOuthosp.getEndTime());
+        if(!CollectionUtils.isEmpty(patMedOuthosp.getDeptcodes())) {
+            String result = String.join(",",   patMedOuthosp.getDeptcodes());
+            patMedOuthospQueryReq.setDeptcode(result);
+        }
+
         List<PatMedOuthosp> patMedOuthospQueryResps = patMedOuthospMapper.callSpQueryOuthosp(patMedOuthospQueryReq);
         if (patMedOuthosp.getPageNum() != null) {
             for (PatMedOuthosp patMedOuthosp1 : patMedOuthospQueryResps) {
@@ -304,7 +309,7 @@
         PatMedOuthospQueryReq req = new PatMedOuthospQueryReq();
         String deptcodes = CollectionUtils.isEmpty(patMedReq.getDeptcodeList()) ? null : String.join(",", patMedReq.getDeptcodeList());
         req.setBeginAdmitdate(patMedReq.getStartDate());
-        req.setEndAdmitdate(patMedReq.getEndDate());
+        req.setEndAdmitdate(DateUtils.addDays(patMedReq.getEndDate(),1));
         req.setDeptcode(deptcodes);
         req.setOrgid(patMedReq.getOrgid());
 //        req.setCampusid(patMedReq.getCampusid());
@@ -334,6 +339,7 @@
     public Integer dealOutpatientInfo() {
         PatMedOuthosp patMedOuthosp = new PatMedOuthosp();
         patMedOuthosp.setDiagcheckFlag("0");
+        patMedOuthosp.setFuflag("1");
         List<PatMedOuthosp> patMedOuthosps = selectPatMedOuthospList(patMedOuthosp);
         for (PatMedOuthosp patMedOuthosp1 : patMedOuthosps) {
             PatArchive patArchive = patArchiveMapper.selectPatArchiveByPatid(patMedOuthosp1.getPatid());

--
Gitblit v1.9.3