无关风月
2026-01-17 4a4d2741c5962dc0e5d7101b3435c2ab8312ff8a
ruoyi-system/src/main/resources/mapper/system/TPedigreeChartMapper.xml
@@ -35,6 +35,15 @@
            <if test="query.generationType != null">
                and generation_type = #{query.generationType}
            </if>
            <if test="query.roleType == 1">
                and status = 2
            </if>
            <if test="query.roleType == 2">
                and status = 2
            </if>
            <if test="query.roleType == 3">
                and status = 2 or status = 1
            </if>
        <if test="query.projectIds != null and query.projectIds.size() > 0">
            and project_id in
            <foreach item="item" collection="query.projectIds" separator="," open="(" close=")" index="">
@@ -57,9 +66,18 @@
        where pedigree_chart_id = #{query.id}
          and status = 1
          and type = 1
          and vaccinate_id is not null
          and preserve_id is null
        and  disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
          and audit_status = 1
          and  disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        order by create_time desc
    </select>
    <select id="pageListCountDetail" resultType="com.ruoyi.system.vo.TPedigreeChartDetailVO">
        select  * from t_pedigree_chart_detail
        where pedigree_chart_id = #{query.id}
          and status = 1
          and type = 2
          and audit_status = 1
          and  disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        order by create_time desc
    </select>