forked from gzzfw/backEnd/gz-dyh

zhouxiantao
2024-09-14 47488a7bf69c5cdae18e80a616ec0a43e890765d
dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileInfoMapper.xml
@@ -319,6 +319,18 @@
        </if>
    </select>
    <select id="listFileByType" resultMap="fileResult">
        SELECT t2.owner_id, t2.owner_cat, t2.owner_type, t2.uploader_id, t2.uploader_name,
        <include refid="column-part-t"/>
        FROM dyh_file_info t1
        LEFT JOIN dyh_file_relate t2 ON t1.id = t2.file_id
        WHERE
        t1.delete_status = 0
        and t2.main_id = #{terms.mainId}
        and t2.owner_type = #{terms.ownerType}
    </select>
<!--    &lt;!&ndash; 根据多个编号查询 &ndash;&gt;-->
<!--    <select id="listByIdsTypes" resultMap="fileResult">-->
<!--        SELECT t2.owner_id, t2.owner_cat, t2.owner_type, t2.uploader_id, t2.uploader_name,-->