java110
2021-09-04 576c52d8d8e6fb1e738380cc5fc101a6a2b0b3a8
java110-db/src/main/resources/mapper/common/FileRelServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -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>