heheng
2025-11-28 6d5fc7859473d30a2e4c1f20f748abae652342b8
multi-system/src/main/resources/mapper/system/ProjectDocumentMapper.xml
@@ -4,10 +4,10 @@
    <insert id="insertBaths">
        INSERT INTO `project_document`
            (`company_id`, `catalogue_id`, `item_id`, `file_name`, `file_path` )
            (`company_id`, `catalogue_id`, `item_id`, `file_name`, `file_path`,document_type )
        VALUES
            <foreach collection="projectDocuments" separator="," item="item">
                ( #{item.companyId}, #{item.catalogueId}, #{item.itemId}, #{item.fileName}, #{item.filePath} )
                ( #{item.companyId}, #{item.catalogueId}, #{item.itemId}, #{item.fileName}, #{item.filePath}, #{item.documentType} )
            </foreach>
    </insert>
@@ -19,12 +19,14 @@
            `item_id`,
            `file_name`,
            `file_path`,
            `del_flag`
            `del_flag`,
            `document_type`
        FROM
            `project_document`
        where del_flag = 1
        and company_id = #{companyId}
        and catalogue_id = #{catalogueId}
        and item_id = #{itemId}
        and document_type = #{documentType}
    </select>
</mapper>