From 6d5fc7859473d30a2e4c1f20f748abae652342b8 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期五, 28 十一月 2025 13:11:26 +0800
Subject: [PATCH] 功能修改

---
 multi-system/src/main/resources/mapper/system/ProjectDocumentMapper.xml |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/ProjectDocumentMapper.xml b/multi-system/src/main/resources/mapper/system/ProjectDocumentMapper.xml
index 6887d94..0e2409b 100644
--- a/multi-system/src/main/resources/mapper/system/ProjectDocumentMapper.xml
+++ b/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>

--
Gitblit v1.9.2