陈昶聿
4 天以前 10343cb5deaecc2bf3023317a4c142ba84ec3b72
feat: 统一档案随访周期 followupPeriod

儿保档案详情和专科档案生成配置新增 followupPeriod;配置生成妇保/儿保档案时同步写入随访周期;新增对应数据库字段脚本。
已修改5个文件
已添加1个文件
37 ■■■■■ 文件已修改
ruoyi-patarchive/src/main/java/com/ruoyi/patarchive/domain/PatSpecificArchiveGenerateConfig.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-patarchive/src/main/resources/mapper/patarchive/PatSpecificArchiveGenerateConfigMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/PatChildArchiveDetail.java 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/PatSpecificArchiveGenerateServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/PatChildArchiveDetailMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/pat_child_archive_detail_and_config_add_followup_period_20261109.sql 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-patarchive/src/main/java/com/ruoyi/patarchive/domain/PatSpecificArchiveGenerateConfig.java
@@ -36,6 +36,11 @@
    @ApiModelProperty(value = "档案类型: å¦‡ç§‘档案类型(1 æ—©å­•关爱2 å›´ç»ç»æœŸMHI),儿科档案类型(1营养性疾病 2学习困难 3高危儿专案)")
    private String archiveType;
    /** éšè®¿å‘¨æœŸ */
    @Excel(name = "随访周期")
    @ApiModelProperty(value = "随访周期")
    private String followupPeriod;
    /** ç§‘室Code集合(JSON格式,如 ["D001","D002"]) */
    @ApiModelProperty(value = "科室Code集合(JSON格式,如 [\"D001\",\"D002\"])")
    private String deptCodes;
ruoyi-patarchive/src/main/resources/mapper/patarchive/PatSpecificArchiveGenerateConfigMapper.xml
@@ -9,6 +9,7 @@
        <result property="deptType" column="dept_type"/>
        <result property="deptCategory" column="dept_category"/>
        <result property="archiveType" column="archive_type"/>
        <result property="followupPeriod" column="followup_period"/>
        <result property="deptCodes" column="dept_codes"/>
        <result property="icd10Codes" column="icd10_codes"/>
        <result property="remark" column="remark"/>
@@ -26,6 +27,7 @@
               dept_type,
               dept_category,
               archive_type,
               followup_period,
               dept_codes,
               icd10_codes,
               remark,
@@ -47,6 +49,7 @@
            <if test="deptType != null and deptType != ''">and dept_type = #{deptType}</if>
            <if test="deptCategory != null and deptCategory != ''">and dept_category = #{deptCategory}</if>
            <if test="archiveType != null and archiveType != ''">and archive_type = #{archiveType}</if>
            <if test="followupPeriod != null and followupPeriod != ''">and followup_period = #{followupPeriod}</if>
            <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
            <if test="campusid != null and campusid != ''">and campusid = #{campusid}</if>
            <if test="params.beginTime != null and params.beginTime != ''">
@@ -77,6 +80,7 @@
            <if test="deptType != null">dept_type,</if>
            <if test="deptCategory != null">dept_category,</if>
            <if test="archiveType != null">archive_type,</if>
            <if test="followupPeriod != null">followup_period,</if>
            <if test="deptCodes != null">dept_codes,</if>
            <if test="icd10Codes != null">icd10_codes,</if>
            <if test="remark != null">remark,</if>
@@ -92,6 +96,7 @@
            <if test="deptType != null">#{deptType},</if>
            <if test="deptCategory != null">#{deptCategory},</if>
            <if test="archiveType != null">#{archiveType},</if>
            <if test="followupPeriod != null">#{followupPeriod},</if>
            <if test="deptCodes != null">#{deptCodes},</if>
            <if test="icd10Codes != null">#{icd10Codes},</if>
            <if test="remark != null">#{remark},</if>
@@ -111,6 +116,7 @@
            <if test="deptType != null">dept_type = #{deptType},</if>
            <if test="deptCategory != null">dept_category = #{deptCategory},</if>
            <if test="archiveType != null">archive_type = #{archiveType},</if>
            <if test="followupPeriod != null">followup_period = #{followupPeriod},</if>
            <if test="deptCodes != null">dept_codes = #{deptCodes},</if>
            <if test="icd10Codes != null">icd10_codes = #{icd10Codes},</if>
            <if test="remark != null">remark = #{remark},</if>
smartor/src/main/java/com/smartor/domain/PatChildArchiveDetail.java
@@ -227,6 +227,10 @@
    @ApiModelProperty(value = "高危儿专案-拟随访时间")
    private Date plannedFollowTime;
    /** éšè®¿å‘¨æœŸ */
    @ApiModelProperty(value = "随访周期")
    private String followupPeriod;
    /** é«˜å±å„¿ä¸“案-生长发育检测 */
    @ApiModelProperty(value = "高危儿专案-生长发育检测")
    private String hrcGrowthDevelopmentMonitoring;
smartor/src/main/java/com/smartor/service/impl/PatSpecificArchiveGenerateServiceImpl.java
@@ -178,6 +178,7 @@
                                                           PatSpecificArchiveGenerateConfig config, String campusid) {
        PatMaternityArchiveDetail detail = new PatMaternityArchiveDetail();
        detail.setArchiveType(config.getArchiveType());
        detail.setFollowupPeriod(config.getFollowupPeriod());
        detail.setSourceType(SOURCE_TYPE_OUTHOSP);
        fillCommonDetail(detail, patMedOuthosp, patArchive, campusid);
        if (patArchive != null) {
@@ -190,6 +191,7 @@
                                                   PatSpecificArchiveGenerateConfig config, String campusid) {
        PatChildArchiveDetail detail = new PatChildArchiveDetail();
        detail.setArchiveType(config.getArchiveType());
        detail.setFollowupPeriod(config.getFollowupPeriod());
        detail.setSourceType(SOURCE_TYPE_OUTHOSP);
        fillCommonChildDetail(detail, patMedOuthosp, patArchive, campusid);
        detail.setParentPhone(patArchive != null
smartor/src/main/resources/mapper/smartor/PatChildArchiveDetailMapper.xml
@@ -47,6 +47,7 @@
        <result property="highRiskChildType" column="high_risk_child_type"/>
        <result property="highRiskChildName" column="high_risk_child_name"/>
        <result property="plannedFollowTime" column="planned_follow_time"/>
        <result property="followupPeriod" column="followup_period"/>
        <result property="hrcGrowthDevelopmentMonitoring" column="hrc_growth_development_monitoring"/>
        <result property="hrcNeurologicalEvaluation" column="hrc_neurological_evaluation"/>
        <result property="hrcInterventionRecords" column="hrc_intervention_records"/>
@@ -107,6 +108,7 @@
               high_risk_child_type,
               high_risk_child_name,
               planned_follow_time,
               followup_period,
               hrc_growth_development_monitoring,
               hrc_neurological_evaluation,
               hrc_intervention_records,
@@ -132,6 +134,7 @@
            and del_flag = '0'
            <if test="archiveid != null">and archiveid = #{archiveid}</if>
            <if test="archiveType != null and archiveType != ''">and archive_type = #{archiveType}</if>
            <if test="followupPeriod != null and followupPeriod != ''">and followup_period = #{followupPeriod}</if>
            <if test="sourceType != null and sourceType != ''">and source_type = #{sourceType}</if>
            <if test="outhospno != null and outhospno != ''">and outhospno = #{outhospno}</if>
            <if test="inhospno != null and inhospno != ''">and inhospno = #{inhospno}</if>
@@ -222,6 +225,7 @@
            <if test="highRiskChildType != null">high_risk_child_type,</if>
            <if test="highRiskChildName != null">high_risk_child_name,</if>
            <if test="plannedFollowTime != null">planned_follow_time,</if>
            <if test="followupPeriod != null">followup_period,</if>
            <if test="hrcGrowthDevelopmentMonitoring != null">hrc_growth_development_monitoring,</if>
            <if test="hrcNeurologicalEvaluation != null">hrc_neurological_evaluation,</if>
            <if test="hrcInterventionRecords != null">hrc_intervention_records,</if>
@@ -280,6 +284,7 @@
            <if test="highRiskChildType != null">#{highRiskChildType},</if>
            <if test="highRiskChildName != null">#{highRiskChildName},</if>
            <if test="plannedFollowTime != null">#{plannedFollowTime},</if>
            <if test="followupPeriod != null">#{followupPeriod},</if>
            <if test="hrcGrowthDevelopmentMonitoring != null">#{hrcGrowthDevelopmentMonitoring},</if>
            <if test="hrcNeurologicalEvaluation != null">#{hrcNeurologicalEvaluation},</if>
            <if test="hrcInterventionRecords != null">#{hrcInterventionRecords},</if>
@@ -342,6 +347,7 @@
            <if test="highRiskChildType != null">high_risk_child_type = #{highRiskChildType},</if>
            <if test="highRiskChildName != null">high_risk_child_name = #{highRiskChildName},</if>
            <if test="plannedFollowTime != null">planned_follow_time = #{plannedFollowTime},</if>
            <if test="followupPeriod != null">followup_period = #{followupPeriod},</if>
            <if test="hrcGrowthDevelopmentMonitoring != null">hrc_growth_development_monitoring = #{hrcGrowthDevelopmentMonitoring},</if>
            <if test="hrcNeurologicalEvaluation != null">hrc_neurological_evaluation = #{hrcNeurologicalEvaluation},</if>
            <if test="hrcInterventionRecords != null">hrc_intervention_records = #{hrcInterventionRecords},</if>
sql/pat_child_archive_detail_and_config_add_followup_period_20261109.sql
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
-- =============================================================================
-- éšè®¿å‘¨æœŸç»Ÿä¸€å­—段 followup_period
-- æ¶‰åŠï¼š
--   1. pat_child_archive_detail(儿保档案详情)
--   2. pat_specific_archive_generate_config(专科档案生成配置)
-- è¯´æ˜Žï¼šå¦‡ä¿æ¡£æ¡ˆè¯¦æƒ… pat_maternity_archive_detail å·²æœ‰ followup_period,无需重复添加。
-- date:2026-11-09
-- =============================================================================
ALTER TABLE pat_child_archive_detail
    ADD COLUMN followup_period varchar(100) NULL COMMENT '随访周期' AFTER planned_follow_time;
ALTER TABLE pat_specific_archive_generate_config
    ADD COLUMN followup_period varchar(100) NULL COMMENT '随访周期' AFTER archive_type;