From 579438ab87a88332f3643fbeefb3bbc43c87ae59 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 04 十一月 2026 10:36:43 +0800
Subject: [PATCH] 【丽水】妇幼门诊接诊完成记录生成专科档案

---
 ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java
index b8bd5e0..798186a 100644
--- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java
+++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java
@@ -5,6 +5,7 @@
 import com.ruoyi.common.core.domain.entity.SysDept;
 import com.ruoyi.common.core.domain.entity.SysUser;
 import com.ruoyi.quartz.service.ICollectHISService;
+import com.smartor.common.SpecificArchiveConstants;
 import com.smartor.domain.HnDataGatherVO;
 import com.smartor.domain.Icd10;
 import com.smartor.service.IHNGatherPatArchiveService;
@@ -41,6 +42,24 @@
     }
 
     /**
+     * 閲囬泦涓芥按甯傚骞间繚鍋ラ櫌闂ㄨ瘖鎺ヨ瘖瀹屾垚璁板綍锛屽苟鐢熸垚濡囩/鍎跨妗f銆�
+     * 璇锋眰浣撳彲浼� startTime銆乪ndTime锛坹yyy-MM-dd 鎴� yyyy-MM-dd HH:mm:ss锛夛紝涓嶄紶榛樿閲囬泦鏄ㄥぉ銆�
+     */
+    @PostMapping("/collectMchArchive")
+    @ApiOperation("閲囬泦涓芥按濡囧辜闂ㄨ瘖鎺ヨ瘖瀹屾垚璁板綍骞剁敓鎴愪笓绉戞。妗�")
+    public AjaxResult collectMchArchive(@RequestBody(required = false) HnDataGatherVO hnDataGatherVO) {
+        try {
+            HnDataGatherVO request = hnDataGatherVO != null ? hnDataGatherVO : new HnDataGatherVO();
+            Integer count = ichService.collectMchOuthospAndGenerateArchive(
+                    SpecificArchiveConstants.LISHUI_MCH_ORG_ID, request.getStartTime(), request.getEndTime());
+            return AjaxResult.success(count);
+        } catch (Exception ex) {
+            log.error("閲囬泦涓芥按濡囧辜闂ㄨ瘖鎺ヨ瘖瀹屾垚璁板綍澶辫触", ex);
+            return AjaxResult.error(ex.getMessage());
+        }
+    }
+
+    /**
      * 鏌ヨ鐤剧梾鍒楄〃鏁版嵁閲囬泦
      */
     @PostMapping("/collectIcd10")

--
Gitblit v1.9.3