陈昶聿
7 天以前 599beddc80e7e50b2099bacdbf7df2d89df00ef2
ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/CollectHISController.java
@@ -8,6 +8,7 @@
import com.ruoyi.datacollection.domain.HnDataGatherVO;
import com.ruoyi.common.core.domain.entity.Icd10;
import com.ruoyi.datacollection.service.IHNGatherPatArchiveService;
import com.smartor.common.SpecificArchiveConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
@@ -41,6 +42,24 @@
    }
    /**
     * 采集丽水市妇幼保健院门诊接诊完成记录,并生成妇科/儿科档案。
     * 请求体可传 startTime、endTime(yyyy-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")