From 09a2b97879cc645d55b4cc277594f28a1d7de629 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 19 五月 2021 12:29:33 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 java110-db/src/main/resources/mapper/common/FileRelServiceDaoImplMapper.xml |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/common/FileRelServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/FileRelServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 9b7966f..b596bea
--- a/java110-db/src/main/resources/mapper/common/FileRelServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/FileRelServiceDaoImplMapper.xml
@@ -77,7 +77,6 @@
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
         </if>
-
     </insert>
 
     <insert id="saveFileRel" parameterType="Map">
@@ -89,6 +88,25 @@
         )
     </insert>
 
+    <update id="deleteFileRel" parameterType="Map">
+        update file_rel t set t.status_cd = '1'
+        where 1=1
+        <if test="relTypeCd !=null and relTypeCd != ''">
+            and t.rel_type_cd= #{relTypeCd}
+        </if>
+        <if test="fileRealName !=null and fileRealName != ''">
+            and t.file_real_name= #{fileRealName}
+        </if>
+        <if test="objId !=null and objId != ''">
+            and t.obj_id= #{objId}
+        </if>
+        <if test="fileSaveName !=null and fileSaveName != ''">
+            and t.file_save_name= #{fileSaveName}
+        </if>
+        <if test="fileRelId !=null and fileRelId != ''">
+            and t.file_rel_id= #{fileRelId}
+        </if>
+    </update>
 
     <!-- 鏌ヨ鏂囦欢瀛樻斁淇℃伅 add by wuxw 2018-07-03 -->
     <select id="getFileRelInfo" parameterType="Map" resultType="Map">
@@ -138,9 +156,7 @@
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
         </if>
-
     </select>
-
 
     <!-- 淇敼鏂囦欢瀛樻斁淇℃伅 add by wuxw 2018-07-03 -->
     <update id="updateFileRelInfoInstance" parameterType="Map">
@@ -170,7 +186,6 @@
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
         </if>
-
     </update>
 
     <!-- 鏌ヨ鏂囦欢瀛樻斁鏁伴噺 add by wuxw 2018-07-03 -->
@@ -209,8 +224,5 @@
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
         </if>
-
-
     </select>
-
 </mapper>

--
Gitblit v1.8.0