From 4dc8a15cb1f1c7b8a70fce95f3f715b472302a9c Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Fri, 06 Sep 2024 18:20:26 +0800
Subject: [PATCH] 1、联合处置相关接口 2、查询办理结果接口 3、查询档案信息接口 4、修改督办相关接口等

---
 dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileInfoMapper.xml |   37 ++++++++++++++++++-------------------
 1 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileInfoMapper.xml b/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileInfoMapper.xml
index f789de2..5f4a18e 100644
--- a/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileInfoMapper.xml
+++ b/dyh-service/dyh-sys/src/main/java/cn/huge/module/file/dao/mapper/xml/FileInfoMapper.xml
@@ -303,31 +303,30 @@
     </select>
 
     <!-- 根据多个编号查询 -->
-    <select id="listByids" resultMap="fileResult">
+    <select id="listFile" 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 t2.main_id = #{mainId}
-        <if test="terms.ownerIds = null and terms.ownerIds =''">
-            and t2.owner_id in (${ownerIds})
+        WHERE
+        t1.delete_status = 0
+        and t2.main_id = #{terms.mainId}
+        <if test="terms.ownerIds != null and terms.ownerIds !=''">
+            and t2.owner_id in (${terms.ownerIds})
         </if>
-        <if test="terms.types = null and terms.types =''">
-            and t2.owner_type in (${types})
+        <if test="terms.types != null and terms.types !=''">
+            and t2.owner_type in (${terms.types})
         </if>
-
-
-
     </select>
 
-    <!-- 根据多个编号查询 -->
-    <select id="listByIdsTypes" 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 t2.owner_id in (${ownerIds})
-        and t2.main_id = #{mainId}
-        and t2.owner_type in (${types})
-    </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,-->
+<!--        <include refid="column-part-t"/>-->
+<!--        FROM dyh_file_info t1-->
+<!--        LEFT JOIN dyh_file_relate t2 ON t1.id = t2.file_id-->
+<!--        WHERE t2.owner_id in (${ownerIds})-->
+<!--        and t2.main_id = #{mainId}-->
+<!--        and t2.owner_type in (${types})-->
+<!--    </select>-->
 </mapper> 
\ No newline at end of file

--
Gitblit v1.8.0