智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/resource/mapper/AttachMapper.xml
@@ -18,11 +18,19 @@
        <result column="original_name" property="originalName"/>
        <result column="extension" property="extension"/>
        <result column="attach_size" property="attachSize"/>
        <result column="deptid" property="deptid"/>
        <result column="type" property="type"/>
    </resultMap>
    <select id="selectAttachPage" resultMap="attachResultMap">
        select * from blade_attach where is_deleted = 0
        select * from blade_attach where is_deleted = 0 and cardid=#{cardid} and type=#{type}
        <if test="attach.originalName!='' and attach.originalName!=null">
             and  original_name like concat('%', #{attach.originalName},'%')
        </if>
    </select>
    <update id="updat">
        update blade_attach set deptid=#{deptid} where cardid=#{cardid}
    </update>
</mapper>