陈昶聿
9 天以前 579438ab87a88332f3643fbeefb3bbc43c87ae59
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 @@
    }
    /**
     * 采集丽水市妇幼保健院门诊接诊完成记录,并生成妇科/儿科档案。
     * 请求体可传 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")