From 9c013c105b46ea0e8cbfbe6e7d32e7bddbdcc1c4 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 31 十月 2024 02:33:22 +0800
Subject: [PATCH] 优化工作单 代码

---
 java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml
index 3117f1b..547ea31 100644
--- a/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/oa/WorkPoolFileV1ServiceDaoImplMapper.xml
@@ -5,8 +5,8 @@
 
     <!-- 淇濆瓨宸ヤ綔鍗曟枃浠朵俊鎭� add by wuxw 2018-07-03 -->
     <insert id="saveWorkPoolFileInfo" parameterType="Map">
-        insert into work_pool_file(path_url, community_id, store_id, work_id, file_id, task_id, file_type)
-        values (#{pathUrl}, #{communityId}, #{storeId}, #{workId}, #{fileId}, #{taskId}, #{fileType})
+        insert into work_pool_file(path_url, community_id, store_id, work_id, file_id, task_id, file_type,item_id)
+        values (#{pathUrl}, #{communityId}, #{storeId}, #{workId}, #{fileId}, #{taskId}, #{fileType},#{itemId})
     </insert>
 
     <!-- 鏌ヨ宸ヤ綔鍗曟枃浠朵俊鎭� add by wuxw 2018-07-03 -->
@@ -14,7 +14,7 @@
         select t.path_url,t.path_url pathUrl,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id
         communityId,t.store_id,t.store_id storeId,t.work_id,t.work_id workId,t.file_id,t.file_id fileId,t.task_id
         taskId,
-        t.file_type fileType,wt.staff_name staffName
+        t.file_type fileType,wt.staff_name staffName,t.item_id itemId
         from work_pool_file t
         left join work_task wt on t.task_id = wt.task_id and wt.status_cd = '0'
         where 1 =1
@@ -41,6 +41,9 @@
         </if>
         <if test="fileType !=null and fileType != ''">
             and t.file_type= #{fileType}
+        </if>
+        <if test="itemId !=null and itemId != ''">
+            and t.item_id= #{itemId}
         </if>
         <if test="staffNameLike !=null and staffNameLike != ''">
             and wt.staff_name like concat('%', #{staffNameLike},'%')
@@ -117,6 +120,9 @@
         <if test="fileType !=null and fileType != ''">
             and t.file_type= #{fileType}
         </if>
+        <if test="itemId !=null and itemId != ''">
+            and t.item_id= #{itemId}
+        </if>
         <if test="staffNameLike !=null and staffNameLike != ''">
             and wt.staff_name like concat('%', #{staffNameLike},'%')
         </if>

--
Gitblit v1.8.0